exceptions
Exceptions.
Exceptions for the bitpin package.
Description.
This module contains all the exceptions that are raised by the bitpin package.
APIException
Bases: Exception
API Exception.
Attributes:
Name | Type | Description |
---|---|---|
message |
str
|
Message. |
result |
Any
|
Result. |
status_code |
int
|
Status code. |
response |
Union[Response, ClientResponse]
|
Response. |
request |
Union[PreparedRequest, ClientRequest]
|
Request. |
url |
str
|
URL. |
Source code in src/bitpin/exceptions.py
__init__(response, status_code, text)
Constructor.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
response |
Union[Response, ClientResponse]
|
Response. |
required |
status_code |
int
|
Status code. |
required |
text |
str
|
Text. |
required |
Source code in src/bitpin/exceptions.py
__str__()
String representation.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
String representation. |
RequestException
Bases: Exception
Request Exception.
Attributes:
Name | Type | Description |
---|---|---|
message |
str
|
Message. |