CosmosResourceNotFoundError 클래스

상태 코드 404를 사용하는 HTTP 오류 응답입니다.

상속
CosmosResourceNotFoundError
CosmosResourceNotFoundError

생성자

CosmosResourceNotFoundError(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를 설정합니다. 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) – self를 설정합니다. 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