Source code for inflow.exceptions

__all__ = ['InfluxDBException', 'QueryFailedException', 'WriteFailedException',
           'DatabaseNotFoundException', 'UnauthorizedException',
           'ForbiddenException']


[docs]class InfluxDBException(Exception): """ Generic exception for InfluxDB HTTP error's, all other exceptions subclass from this one. The message in this exception (and it's subclasses) is the raw error message returned by the InfluxDB HTTP API. """ pass
[docs]class QueryFailedException(InfluxDBException): """ Thrown when a query is rejected by the API. For example, this happens when you have a syntactically incorrect query. """ pass
[docs]class WriteFailedException(InfluxDBException): """ Thrown when a write is rejected by the API. """ pass
[docs]class DatabaseNotFoundException(InfluxDBException): """ Thrown when trying to write to a non-existing database. """ pass
[docs]class UnauthorizedException(InfluxDBException): """ Thrown when trying to log in using incorrect credentials. """ pass
[docs]class ForbiddenException(InfluxDBException): """ Thrown when a user is correctly logged in, but is not allowed to do the query or write action it wants to do. """ pass