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(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. |
protected void |
setOperation(TableOperation operation)
Reserved for internal use.
|
getErrorCode, getExtendedErrorInformation, getHttpStatusCode, translateClientException, translateException, translateFromHttpStatus
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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(RequestResult res, TableOperation op, InputStream inStream, TablePayloadFormat format)
TableServiceException
instance using
the specified parameters.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.protected void setOperation(TableOperation operation)
TableServiceException
to be
thrown.operation
- The TableOperation
object representing the table operation that caused this
TableServiceException
to be thrown.Copyright © 2019. All rights reserved.