public final class TableServiceException extends StorageException
errorCode, extendedErrorInformation| Modifier | Constructor and Description |
|---|---|
protected |
TableServiceException(int httpStatusCode,
String message,
TableOperation operation,
Reader reader,
TablePayloadFormat format)
Reserved for internal use.
|
|
TableServiceException(String errorCode,
String message,
int statusCode,
StorageExtendedErrorInformation extendedErrorInfo,
Exception innerException)
Constructs a
TableServiceException instance using the specified error code, message, status code,
extended error information and inner exception. |
| Modifier and Type | Method and Description |
|---|---|
protected static TableServiceException |
generateTableServiceException(boolean retryable,
RequestResult res,
TableOperation op,
InputStream inStream,
TablePayloadFormat format)
Reserved for internal use.
|
TableOperation |
getOperation()
Gets the table operation that caused the
TableServiceException to be thrown. |
boolean |
isRetryable()
Reserved for internal use.
|
protected void |
setOperation(TableOperation operation)
Reserved for internal use.
|
protected void |
setRetryable(boolean retryable)
Reserved for internal use.
|
getErrorCode, getExtendedErrorInformation, getHttpStatusCode, translateClientException, translateException, translateFromHttpStatusaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TableServiceException(String errorCode, String message, int statusCode, StorageExtendedErrorInformation extendedErrorInfo, Exception innerException)
TableServiceException instance using the specified error code, message, status code,
extended error information and inner exception.errorCode - A String that represents the error code returned by the table operation.message - A String that represents the error message returned by the table operation.statusCode - An int>/code> which represents the HTTP status code returned by the table operation.extendedErrorInfo - A StorageExtendedErrorInformation object that represents the extended error information
returned by the table operation.innerException - An Exception object that represents a reference to the initial exception, if one exists.protected TableServiceException(int httpStatusCode,
String message,
TableOperation operation,
Reader reader,
TablePayloadFormat format)
TableServiceException instance using the specified HTTP
status code, message, operation, and stream reader.httpStatusCode - The int HTTP Status Code value returned by the table operation that caused the exception.message - A String description of the error that caused the exception.operation - The TableOperation object representing the table operation that was in progress when the
exception occurred.reader - The Java.IO.Stream derived stream reader for the HTTP request results returned by the
table operation, if any.format - The TablePayloadFormat to use for parsingprotected static TableServiceException generateTableServiceException(boolean retryable, RequestResult res, TableOperation op, InputStream inStream, TablePayloadFormat format)
TableServiceException instance using
the specified parameters.retryable - true if the table operation can be retried; otherwise, false.res - A RequestResult containing the result of the table storage service operation.op - The TableOperation representing the table operation that caused the exception.inStream - The java.io.InputStream of the error response from the table operation request.format - The TablePayloadFormat to use for parsingTableServiceException instance initialized with values from the input parameters.public TableOperation getOperation()
TableServiceException to be thrown.TableOperation object representing the table operation that caused this
TableServiceException to be thrown.public boolean isRetryable()
boolean flag indicating whether the table operation that caused the exception can be
retried.protected void setOperation(TableOperation operation)
TableServiceException to be
thrown.operation - The TableOperation object representing the table operation that caused this
TableServiceException to be thrown.protected void setRetryable(boolean retryable)
retryable - The boolean flag to set indicating whether the table operation that caused the exception
can be retried./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/