CosmosResourceExistsError クラス

状態コード 409 の HTTP エラー応答。

継承
CosmosResourceExistsError
CosmosResourceExistsError

コンストラクター

CosmosResourceExistsError(status_code=None, message=None, response=None, **kwargs)

パラメーター

status_code
int
既定値: None

HTTP 応答コード。

message
str
既定値: None

エラー メッセージ。

response
既定値: None

メソッド

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

error

error: ODataV4Format | 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

model

model: Any | None

reason

reason: str | None

response

response: _HttpResponseCommonAPI | None

status_code

status_code: int | None