StorageException クラス

  • java.lang.Object
    • Exception
      • com.microsoft.azure.storage.StorageException

public class StorageException

Microsoft Azure ストレージ サービスの例外を表します。

フィールドの概要

修飾子と型 フィールドと説明
String errorCode

操作によって返されるエラー コードを表します。

StorageExtendedErrorInformation extendedErrorInformation

操作によって返される拡張エラー情報を表します。

コンストラクターの概要

コンストラクター 説明
StorageException(final String errorCode, final String message, final Exception innerException)

指定したパラメーターを使用して、 クラスのインスタンスを作成します。 状態コードは、拡張エラー情報のクライアント側の例外を null で表す 306 になります。

StorageException(final String errorCode, final String message, final int statusCode, final StorageExtendedErrorInformation extendedErrorInfo, final Exception innerException)

指定したパラメーターを使用して、 クラスのインスタンスを作成します。

メソッドの概要

修飾子と型 メソッドと説明
String getErrorCode()

操作によって返されるエラー コードを取得します。

StorageExtendedErrorInformation getExtendedErrorInformation()

操作によって返される拡張エラー情報を取得します。

int getHttpStatusCode()

操作によって返される HTTP 状態コードを取得します。

StorageException translateClientException(final Exception cause)

内部使用のために予約されています。 指定した例外をストレージ例外に変換します。

StorageException translateException(final StorageRequest<?, ?, ?> request, final Exception cause, final OperationContext opContext)

内部使用のために予約されています。 指定した例外をストレージ例外に変換します。

フィールドの詳細

errorCode

protected String errorCode

操作によって返されるエラー コードを表します。

extendedErrorInformation

protected StorageExtendedErrorInformation extendedErrorInformation

操作によって返される拡張エラー情報を表します。

コンストラクターの詳細

StorageException

public StorageException(final String errorCode, final String message, final Exception innerException)

指定したパラメーターを使用して、 クラスのインスタンスを作成します。 状態コードは、拡張エラー情報のクライアント側の例外を null で表す 306 になります。

Parameters:

errorCode - String操作によって返されるエラー コードを表す 。
message - String操作によって返されるエラー メッセージを表す 。
innerException - 最初の Exception 例外への参照を表す オブジェクト (存在する場合)。

StorageException

public StorageException(final String errorCode, final String message, final int statusCode, final StorageExtendedErrorInformation extendedErrorInfo, final Exception innerException)

指定したパラメーターを使用して、 クラスのインスタンスを作成します。

Parameters:

errorCode - String操作によって返されるエラー コードを表す 。
message - String操作によって返されるエラー メッセージを表す 。
statusCode - 操作によって返される HTTP 状態コード。
extendedErrorInfo - StorageExtendedErrorInformation操作によって返される拡張エラー情報を表す オブジェクト。
innerException - 最初の Exception 例外への参照を表す オブジェクト (存在する場合)。

メソッドの詳細

getErrorCode

public String getErrorCode()

操作によって返されるエラー コードを取得します。

Returns:

errorCode

getExtendedErrorInformation

public StorageExtendedErrorInformation getExtendedErrorInformation()

操作によって返される拡張エラー情報を取得します。

Returns:

extendedErrorInformation

getHttpStatusCode

public int getHttpStatusCode()

操作によって返される HTTP 状態コードを取得します。

Returns:

httpStatusCode

translateClientException

public static StorageException translateClientException(final Exception cause)

内部使用のために予約されています。 指定した例外をストレージ例外に変換します。

Parameters:

cause - Exception変換する例外を表す オブジェクト。

Returns:

StorageException変換された例外を表す オブジェクト。

translateException

public static StorageException translateException(final StorageRequest request, final Exception cause, final OperationContext opContext)

内部使用のために予約されています。 指定した例外をストレージ例外に変換します。

Parameters:

request - HttpURLConnection例外が変換される要求を表す オブジェクト。
cause - Exception変換する例外を表す オブジェクト。
opContext

Returns:

StorageException変換された例外を表す オブジェクト。

適用対象