ResourceExistsError 類別

狀態碼為 4xx 的錯誤回應。 這不會由 Azure 核心管線直接引發。

繼承
ResourceExistsError

建構函式

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

參數

message
預設值: None
response
預設值: None

方法

add_note

Exception.add_note (附注) – 將附注新增至例外狀況

raise_with_traceback

使用現有的追蹤引發例外狀況。

自 1.22.0 版起已被取代:此方法已被取代,因為我們不再支援 Python 2。 請改用 raise/from。

with_traceback

Exception.with_traceback (tb) – 設定自我設定。追蹤回 tb 並傳回自我。

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) – 設定自我設定。追蹤回 tb 並傳回自我。

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