CosmosResourceExistsError Class   
An HTTP error response with status code 409.
Constructor
CosmosResourceExistsError(status_code=None, message=None, response=None, **kwargs)Parameters
| Name | Description | 
|---|---|
| status_code | HTTP response code. Default value: None | 
| message | Error message. Default value: None | 
| response | Default value: None | 
Methods
| add_note | Exception.add_note(note) – add a note to the exception | 
| raise_with_traceback | Raise the exception with the existing traceback. Deprecated since version 1.22.0: This method is deprecated as we don't support Python 2 anymore. Use raise/from instead. | 
| with_traceback | Exception.with_traceback(tb) – set self.traceback to tb and return self. | 
add_note
Exception.add_note(note) – add a note to the exception
add_note()raise_with_traceback
Raise the exception with the existing traceback.
Deprecated since version 1.22.0: This method is deprecated as we don't support Python 2 anymore. Use raise/from instead.
raise_with_traceback() -> Nonewith_traceback
Exception.with_traceback(tb) – set self.traceback to tb and return self.
with_traceback()Attributes
args
continuation_token
continuation_token: str | Noneerror
error: ODataV4Format | Noneexc_msg
exc_msg: strexc_traceback
exc_traceback: TracebackType | Noneexc_type
exc_type: Type[Any] | Noneexc_value
exc_value: BaseException | Noneinner_exception
inner_exception: BaseException | Nonemessage
message: strmodel
model: Any | Nonereason
reason: str | Noneresponse
response: _HttpResponseCommonAPI | Nonestatus_code
status_code: int | None