Share via


CosmosResourceExistsError Klass

Ett HTTP-felsvar med statuskod 409.

Arv
CosmosResourceExistsError
CosmosResourceExistsError

Konstruktor

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

Parametrar

status_code
int
standardvärde: None

HTTP-svarskod.

message
str
standardvärde: None

Felmeddelande.

response
standardvärde: None

Metoder

add_note

Exception.add_note(obs) – lägg till en anteckning i undantaget

raise_with_traceback

Skapa undantaget med den befintliga spårningsfilen.

Inaktuell sedan version 1.22.0: Den här metoden är inaktuell eftersom vi inte stöder Python 2 längre. Använd raise/from i stället.

with_traceback

Exception.with_traceback(tb) – ange själv. traceback till tb och returnera själv.

add_note

Exception.add_note(obs) – lägg till en anteckning i undantaget

add_note()

raise_with_traceback

Skapa undantaget med den befintliga spårningsfilen.

Inaktuell sedan version 1.22.0: Den här metoden är inaktuell eftersom vi inte stöder Python 2 längre. Använd raise/from i stället.

raise_with_traceback() -> None

with_traceback

Exception.with_traceback(tb) – ange själv. traceback till tb och returnera själv.

with_traceback()

Attribut

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