Module pyucrio.exceptions
Unique exception classes utilized by PyUCRio. These exceptions can be used to help trap specific errors raised by this library.
Note that all exceptions are imported at the root level of the library. They
can be referenced using pyucrio.PyUCRioError
or PyUCRioError
.
Classes
class PyUCRioAPIError (*args, **kwargs)
-
Error occurred during an API call
Expand source code
class PyUCRioAPIError(PyUCRioError): """ Error occurred during an API call """ pass
Ancestors
- PyUCRioError
- builtins.Exception
- builtins.BaseException
class PyUCRioDownloadError (*args, **kwargs)
-
Error occurred during downloading of data
NOTE: this is primarily a PyUCalgarySRS error
Expand source code
class PyUCRioDownloadError(PyUCRioError): """ Error occurred during downloading of data NOTE: this is primarily a PyUCalgarySRS error """ pass
Ancestors
- PyUCRioError
- builtins.Exception
- builtins.BaseException
class PyUCRioError (*args, **kwargs)
-
Common base class for all non-exit exceptions.
Expand source code
class PyUCRioError(Exception): def __init__(self, *args, **kwargs): super(PyUCRioError, self).__init__(*args, **kwargs) # pragma: no cover
Ancestors
- builtins.Exception
- builtins.BaseException
Subclasses
class PyUCRioInitializationError (*args, **kwargs)
-
Error occurred during library initialization
Expand source code
class PyUCRioInitializationError(PyUCRioError): """ Error occurred during library initialization """ pass
Ancestors
- PyUCRioError
- builtins.Exception
- builtins.BaseException
class PyUCRioPurgeError (*args, **kwargs)
-
Error occurred during purging of download working directory
Expand source code
class PyUCRioPurgeError(PyUCRioError): """ Error occurred during purging of download working directory """ pass
Ancestors
- PyUCRioError
- builtins.Exception
- builtins.BaseException
class PyUCRioUnsupportedReadError (*args, **kwargs)
-
Unsupported dataset for read function
NOTE: this is primarily a PyUCalgarySRS error
Expand source code
class PyUCRioUnsupportedReadError(PyUCRioError): """ Unsupported dataset for read function NOTE: this is primarily a PyUCalgarySRS error """ pass
Ancestors
- PyUCRioError
- builtins.Exception
- builtins.BaseException