error¶
Module that contains common exception classes for the Cloudant Python client library.
-
exception
cloudant.error.
CloudantArgumentError
(code=100, *args)¶ Bases:
cloudant.error.CloudantException
Provides a way to issue Cloudant Python client library specific exceptions that pertain to invalid argument errors.
Note: The intended use for this class is internal to the Cloudant Python client library.
Parameters: - code (int) – An optional code value used to identify the exception. Defaults to 100.
- args – A list of arguments used to format the exception message.
-
exception
cloudant.error.
CloudantClientException
(code=100, *args)¶ Bases:
cloudant.error.CloudantException
Provides a way to issue Cloudant library client specific exceptions.
Parameters: - code (int) – A code value used to identify the client exception.
- args – A list of arguments used to format the exception message.
-
exception
cloudant.error.
CloudantDatabaseException
(code=100, *args)¶ Bases:
cloudant.error.CloudantException
Provides a way to issue Cloudant library database specific exceptions.
Parameters: - code (int) – A code value used to identify the database exception.
- args – A list of arguments used to format the exception message.
-
exception
cloudant.error.
CloudantDesignDocumentException
(code=100, *args)¶ Bases:
cloudant.error.CloudantException
Provides a way to issue Cloudant library design document exceptions.
Parameters: - code (int) – A code value used to identify the design doc exception.
- args – A list of arguments used to format the exception message.
-
exception
cloudant.error.
CloudantDocumentException
(code=100, *args)¶ Bases:
cloudant.error.CloudantException
Provides a way to issue Cloudant library document specific exceptions.
Parameters: - code (int) – A code value used to identify the document exception.
- args – A list of arguments used to format the exception message.
-
exception
cloudant.error.
CloudantException
(msg, code=None)¶ Bases:
Exception
Provides a way to issue Cloudant Python client library specific exceptions. A CloudantException object is instantiated with a message and optional code.
Note: The intended use for this class is internal to the Cloudant Python client library.
Parameters:
-
exception
cloudant.error.
CloudantFeedException
(code=100, *args)¶ Bases:
cloudant.error.CloudantException
Provides a way to issue Cloudant library feed specific exceptions.
Parameters: - code (int) – A code value used to identify the feed exception.
- args – A list of arguments used to format the exception message.
-
exception
cloudant.error.
CloudantIndexException
(code=100, *args)¶ Bases:
cloudant.error.CloudantException
Provides a way to issue Cloudant library index specific exceptions.
Parameters: - code (int) – A code value used to identify the index exception.
- args – A list of arguments used to format the exception message.
-
exception
cloudant.error.
CloudantReplicatorException
(code=100, *args)¶ Bases:
cloudant.error.CloudantException
Provides a way to issue Cloudant library replicator specific exceptions.
Parameters: - code (int) – A code value used to identify the replicator exception.
- args – A list of arguments used to format the exception message.
-
exception
cloudant.error.
CloudantViewException
(code=100, *args)¶ Bases:
cloudant.error.CloudantException
Provides a way to issue Cloudant library view specific exceptions.
Parameters: - code (int) – A code value used to identify the view exception.
- args – A list of arguments used to format the exception message.
-
exception
cloudant.error.
ResultException
(code=100, *args)¶ Bases:
cloudant.error.CloudantException
Provides a way to issue Cloudant Python client library result specific exceptions.
Parameters: - code (int) – A code value used to identify the result exception. Defaults to 100.
- args – A list of arguments used to format the exception message.