public class TableStorageException
extends com.azure.core.exception.HttpResponseException
TableStorageException is thrown whenever the Tables service 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 Throwable.toString() to get the full payload of the error response if present.| Constructor and Description |
|---|
TableStorageException(String message,
com.azure.core.http.HttpResponse response,
Object value)
Constructs a
TableStorageException. |
| Modifier and Type | Method and Description |
|---|---|
TableErrorCode |
getErrorCode()
Gets the error code returned by the service.
|
String |
getServiceMessage()
Gets the message returned by the service.
|
int |
getStatusCode()
Gets the status code of the response.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TableStorageException(String message, com.azure.core.http.HttpResponse response, Object value)
TableStorageException.message - The exception message or the response content if a message is not available.response - The HttpResponse.value - The error code of the exception.public TableErrorCode getErrorCode()
public String getServiceMessage()
public int getStatusCode()
Copyright © 2021 Microsoft Corporation. All rights reserved.