public class StorageException extends Exception
| Constructor and Description | 
|---|
StorageException(String errorCode,
                String message,
                int statusCode,
                StorageExtendedErrorInformation extendedErrorInfo,
                Exception innerException)
Creates an instance of the  
StorageException class using the specified parameters. | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getErrorCode()
Gets the error code returned by the operation. 
 | 
StorageExtendedErrorInformation | 
getExtendedErrorInformation()
Gets the extended error information returned by the operation. 
 | 
int | 
getHttpStatusCode()
Gets the HTTP status code returned by the operation. 
 | 
static StorageException | 
translateClientException(Exception cause)
RESERVED FOR INTERNAL USE. 
 | 
static StorageException | 
translateException(com.microsoft.azure.storage.core.StorageRequest<?,?,?> request,
                  Exception cause,
                  OperationContext opContext)
RESERVED FOR INTERNAL USE. 
 | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic StorageException(String errorCode, String message, int statusCode, StorageExtendedErrorInformation extendedErrorInfo, Exception innerException)
StorageException class using the specified parameters.errorCode - A String that represents the error code returned by the operation.message - A String that represents the error message returned by the operation.statusCode - The HTTP status code returned by the operation.extendedErrorInfo - A StorageExtendedErrorInformation object that represents the extended error information
            returned by the operation.innerException - An Exception object that represents a reference to the initial exception, if one exists.StorageExtendedErrorInformationpublic static StorageException translateClientException(Exception cause)
cause - An Exception object that represents the exception to translate.StorageException object that represents translated exception.public static StorageException translateException(com.microsoft.azure.storage.core.StorageRequest<?,?,?> request, Exception cause, OperationContext opContext)
request - An HttpURLConnection object that represents the request whose exception is being
            translated.cause - An Exception object that represents the exception to translate.StorageException object that represents translated exception.public String getErrorCode()
public StorageExtendedErrorInformation getExtendedErrorInformation()
public int getHttpStatusCode()
/** 
* 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. 
*/