### YamlMime:JavaType uid: "com.azure.storage.queue.models.QueueStorageException" fullName: "com.azure.storage.queue.models.QueueStorageException" name: "QueueStorageException" nameWithType: "QueueStorageException" summary: "A `StorageException` is thrown whenever Azure Storage successfully returns an error code that is not 200-level." inheritances: - "" - "" - "" - "" - "" - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "wait" - "wait" - "wait" - classRef: "java.lang.Throwable" methodsRef: - "addSuppressed" - "fillInStackTrace" - "getCause" - "getLocalizedMessage" - "getMessage" - "getStackTrace" - "getSuppressed" - "initCause" - "printStackTrace" - "printStackTrace" - "printStackTrace" - "setStackTrace" - "toString" syntax: "public final class **QueueStorageException**
extends " constructors: - uid: "com.azure.storage.queue.models.QueueStorageException.QueueStorageException(java.lang.String,com.azure.core.http.HttpResponse,java.lang.Object)" fullName: "com.azure.storage.queue.models.QueueStorageException.QueueStorageException(String message, HttpResponse response, Object value)" name: "QueueStorageException(String message, HttpResponse response, Object value)" nameWithType: "QueueStorageException.QueueStorageException(String message, HttpResponse response, Object value)" summary: "Constructs a `StorageException`." parameters: - description: "the exception message or the response content if a message is not available." name: "message" type: "String" - description: "the HTTP response." name: "response" type: "" - description: "the error code of the exception." name: "value" type: "Object" syntax: "public QueueStorageException(String message, HttpResponse response, Object value)" desc: "Constructs a `StorageException`." methods: - uid: "com.azure.storage.queue.models.QueueStorageException.getErrorCode()" fullName: "com.azure.storage.queue.models.QueueStorageException.getErrorCode()" name: "getErrorCode()" nameWithType: "QueueStorageException.getErrorCode()" summary: "Gets the error code returned by the service." syntax: "public QueueErrorCode getErrorCode()" desc: "Gets the error code returned by the service." returns: description: "The error code returned by the service." type: "" - uid: "com.azure.storage.queue.models.QueueStorageException.getServiceMessage()" fullName: "com.azure.storage.queue.models.QueueStorageException.getServiceMessage()" name: "getServiceMessage()" nameWithType: "QueueStorageException.getServiceMessage()" summary: "Gets the message returned by the service." syntax: "public String getServiceMessage()" desc: "Gets the message returned by the service." returns: description: "The message returned by the service." type: "String" - uid: "com.azure.storage.queue.models.QueueStorageException.getStatusCode()" fullName: "com.azure.storage.queue.models.QueueStorageException.getStatusCode()" name: "getStatusCode()" nameWithType: "QueueStorageException.getStatusCode()" summary: "Gets the status code on the response." syntax: "public int getStatusCode()" desc: "Gets the status code on the response." returns: description: "The status code on the response." type: "" type: "class" desc: "A `StorageException` is thrown whenever Azure Storage successfully returns an error code that is not 200-level. Users can inspect the status code and error code to determine the cause of the error response. The exception message may also contain more detailed information depending on the type of error. The user may also inspect the raw HTTP response or call toString to get the full payload of the error response if present. Note that even some expected \"errors\" will be thrown as a `StorageException`. For example, some users may perform a getProperties request on an entity to determine whether it exists or not. If it does not exists, an exception will be thrown even though this may be considered an expected indication of absence in this case.\n\n**Sample Code**\n\nFor more samples, please see the [sample file][]\n\n\n[sample file]: https://github.com/Azure/azure-storage-java/blob/master/src/test/java/com/microsoft/azure/storage/Samples.java" metadata: {} package: "com.azure.storage.queue.models" artifact: com.azure:azure-storage-queue:12.22.1