Aracılığıyla paylaş


TableServiceException Class

  • java.lang.Object
    • Exception

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
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.

TableOperation 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:

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 parsing

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:

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 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.

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:

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 parsing

Returns:

A TableServiceException instance initialized with values from the input parameters.

getOperation

public TableOperation getOperation()

Gets the table operation that caused the to be thrown.

Returns:

The TableOperation object representing the table operation that caused this TableServiceException to be thrown.

setOperation

protected void setOperation(final TableOperation operation)

Reserved for internal use. Sets the table operation that caused the to be thrown.

Parameters:

operation - The TableOperation object representing the table operation that caused this TableServiceException to be thrown.

Applies to