azure-docs-sdk-java/docs-ref-autogen/com.azure.storage.queue.mod...

101 строка
8.8 KiB
YAML

### 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:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Throwable?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Exception?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.RuntimeException?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.exception.AzureException?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.exception.HttpResponseException?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"com.azure.core.exception.HttpResponseException?alt=com.azure.core.exception.HttpResponseException&text=HttpResponseException\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"com.azure.core.exception.HttpResponseException.getResponse()?alt=com.azure.core.exception.HttpResponseException.getResponse&text=getResponse\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.exception.HttpResponseException.getValue()?alt=com.azure.core.exception.HttpResponseException.getValue&text=getValue\" data-throw-if-not-resolved=\"False\" />"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html\">Throwable</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#addSuppressed-java.lang.Throwable-\">addSuppressed</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#fillInStackTrace--\">fillInStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getCause--\">getCause</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getLocalizedMessage--\">getLocalizedMessage</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getMessage--\">getMessage</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getStackTrace--\">getStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getSuppressed--\">getSuppressed</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#initCause-java.lang.Throwable-\">initCause</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace--\">printStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintStream-\">printStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintWriter-\">printStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#setStackTrace-java.lang.StackTraceElement:A-\">setStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#toString--\">toString</a>"
syntax: "public final class **QueueStorageException**</br> extends <xref href=\"com.azure.core.exception.HttpResponseException?alt=com.azure.core.exception.HttpResponseException&text=HttpResponseException\" data-throw-if-not-resolved=\"False\" />"
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: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- description: "the HTTP response."
name: "response"
type: "<xref href=\"com.azure.core.http.HttpResponse?alt=com.azure.core.http.HttpResponse&text=HttpResponse\" data-throw-if-not-resolved=\"False\" />"
- description: "the error code of the exception."
name: "value"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
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: "<xref href=\"com.azure.storage.queue.models.QueueErrorCode?alt=com.azure.storage.queue.models.QueueErrorCode&text=QueueErrorCode\" data-throw-if-not-resolved=\"False\" />"
- 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: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- 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: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
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