ODataV4Error Class
An HTTP response error where the JSON is decoded as OData V4 error format.
- Inheritance
-
ODataV4Error
Constructor
ODataV4Error(response: _HttpResponseCommonAPI, **kwargs: Any)
Parameters
Name | Description |
---|---|
response
Required
|
The response object. |
Variables
Name | Description |
---|---|
odata_json
|
The parsed JSON body as attribute for convenience. |
~.code
|
Its value is a service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. |
message
|
Human-readable, language-dependent representation of the error. |
target
|
The target of the particular error (for example, the name of the property in error). This field is optional and may be None. |
details
|
Array of ODataV4Format instances that MUST contain name/value pairs for code and message, and MAY contain a name/value pair for target, as described above. |
innererror
|
An object. The contents of this object are service-defined. Usually this object contains information that will help debug the service. |
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() -> None
with_traceback
Exception.with_traceback(tb) – set self.traceback to tb and return self.
with_traceback()
Attributes
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
Azure SDK for Python