TableServiceException Class
- java.
lang. Object - Exception
- StorageException
- com.
microsoft. azure. storage. table. TableServiceException
- com.
public class TableServiceException extends StorageException
An exception that results when a table storage service operation fails to complete successfully.
Constructor Summary
Constructor | Description |
---|---|
TableServiceException(final int httpStatusCode, final String message, final TableOperation operation, final Reader reader, final TablePayloadFormat format) |
Reserved for internal use. Constructs a instance using the specified HTTP status code, message, operation, and stream reader. |
TableServiceException(final String errorCode, final String message, final int statusCode, final StorageExtendedErrorInformation extendedErrorInfo, final Exception innerException) |
Constructs a instance using the specified error code, message, status code, extended error information and inner exception. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Table |
generateTableServiceException(RequestResult res, TableOperation op, InputStream inStream, TablePayloadFormat format)
Reserved for internal use. A static factory method to create a TableServiceException instance using the specified parameters. |
Table |
getOperation()
Gets the table operation that caused the to be thrown. |
void |
setOperation(final TableOperation operation)
Reserved for internal use. Sets the table operation that caused the to be thrown. |
Inherited Members
Constructor Details
TableServiceException
protected TableServiceException(final int httpStatusCode, final String message, final TableOperation operation, final Reader reader, final TablePayloadFormat format)
Reserved for internal use. Constructs a instance using the specified HTTP status code, message, operation, and stream reader.
Parameters:
int
HTTP Status Code value returned by the table operation that caused the exception.
String
description of the error that caused the exception.
Java.IO.Stream
derived stream reader for the HTTP request results returned by the table operation, if any.
TableServiceException
public TableServiceException(final String errorCode, final String message, final int statusCode, final StorageExtendedErrorInformation extendedErrorInfo, final Exception innerException)
Constructs a instance using the specified error code, message, status code, extended error information and inner exception.
Parameters:
String
that represents the error code returned by the table operation.
String
that represents the error message returned by the table operation.
int
which represents the HTTP status code returned by the table operation.
Exception
object that represents a reference to the initial exception, if one exists.
Method Details
generateTableServiceException
protected static TableServiceException generateTableServiceException(RequestResult res, TableOperation op, InputStream inStream, TablePayloadFormat format)
Reserved for internal use. A static factory method to create a TableServiceException instance using the specified parameters.
Parameters:
java.io.InputStream
of the error response from the table operation request.
Returns:
getOperation
public TableOperation getOperation()
Gets the table operation that caused the to be thrown.
Returns:
setOperation
protected void setOperation(final TableOperation operation)
Reserved for internal use. Sets the table operation that caused the to be thrown.
Parameters: