Share via


HttpResponseError クラス

要求が行われ、サービスから成功していない状態コードが受信されました。

継承
HttpResponseError

コンストラクター

HttpResponseError(message: object | None = None, response: _HttpResponseCommonAPI | None = None, **kwargs: Any)

パラメーター

message
object
既定値: None

"message" 属性として文字列化されたメッセージ オブジェクト

response
HttpResponse または AsyncHttpResponse
既定値: None

例外をトリガーした応答。

変数

reason
str

HTTP 応答の理由

status_code
int

HttpResponse の状態コード

response
HttpResponse または AsyncHttpResponse

例外をトリガーした応答。

model
<xref:msrest.serialization.Model>

要求本文/応答本文モデル

error
ODataV4Format

書式設定されたエラー

メソッド

add_note

Exception.add_note(注) – 例外にメモを追加する

raise_with_traceback

既存のトレースバックで例外を発生させます。

バージョン 1.22.0 以降非推奨: Python 2 はサポートされなくなったため、このメソッドは非推奨です。 代わりに raise/from を使用してください。

with_traceback

Exception.with_traceback(tb) – self を設定します。traceback を tb に戻し、self を返します。

add_note

Exception.add_note(注) – 例外にメモを追加する

add_note()

raise_with_traceback

既存のトレースバックで例外を発生させます。

バージョン 1.22.0 以降非推奨: Python 2 はサポートされなくなったため、このメソッドは非推奨です。 代わりに raise/from を使用してください。

raise_with_traceback() -> None

with_traceback

Exception.with_traceback(tb) – self を設定します。traceback を tb に戻し、self を返します。

with_traceback()

属性

args

continuation_token

continuation_token: str | None

exc_msg

exc_msg: str

exc_traceback

exc_traceback: TracebackType | None

exc_type

exc_type: Type[Any] | None

exc_value

exc_value: BaseException | None

inner_exception

inner_exception: BaseException | None

message

message: str