Exceptions
influxdb.exceptions
Exception handler for InfluxDBClient.
Classes
InfluxDBClientError
Bases: Exception
Raised when an error occurs in the request.
Source code in influxdb/exceptions.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
Functions
__init__(content, code=None)
Initialize the InfluxDBClientError.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
content
|
str or bytes
|
the error message content |
required |
code
|
int
|
optional error code |
None
|
Source code in influxdb/exceptions.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
InfluxDBServerError
Bases: Exception
Raised when a server error occurs.
Source code in influxdb/exceptions.py
34 35 36 37 38 39 40 41 42 43 44 | |
Functions
__init__(content)
Initialize the InfluxDBServerError.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
content
|
str
|
the error message content |
required |
Source code in influxdb/exceptions.py
37 38 39 40 41 42 43 44 | |