Module pyucalgarysrs.exceptions

The exceptions module contains unique exception classes utilized by PyUCalgarySRS. These exceptions can be used to help trap specific errors raised by the library.

Note that all exceptions are imported at the root level of the library. They can be referenced using pyucalgarysrs.SRSError or SRSError.

Classes

class SRSAPIError (*args, **kwargs)
Expand source code
class SRSAPIError(SRSError):
    """
    Error occurred during an API call
    """
    pass

Error occurred during an API call

Ancestors

  • SRSError
  • builtins.Exception
  • builtins.BaseException
class SRSDownloadError (*args, **kwargs)
Expand source code
class SRSDownloadError(SRSError):
    """
    Error occurred during downloading of data
    """
    pass

Error occurred during downloading of data

Ancestors

  • SRSError
  • builtins.Exception
  • builtins.BaseException
class SRSError (*args, **kwargs)
Expand source code
class SRSError(Exception):

    def __init__(self, *args, **kwargs):
        super(SRSError, self).__init__(*args, **kwargs)  # pragma: no cover

Common base class for all non-exit exceptions.

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses

class SRSInitializationError (*args, **kwargs)
Expand source code
class SRSInitializationError(SRSError):
    """
    Error occurred during library initialization
    """
    pass

Error occurred during library initialization

Ancestors

  • SRSError
  • builtins.Exception
  • builtins.BaseException
class SRSPurgeError (*args, **kwargs)
Expand source code
class SRSPurgeError(SRSError):
    """
    Error occurred during purging of download or tar extraction working directory
    """
    pass

Error occurred during purging of download or tar extraction working directory

Ancestors

  • SRSError
  • builtins.Exception
  • builtins.BaseException
class SRSUnsupportedReadError (*args, **kwargs)
Expand source code
class SRSUnsupportedReadError(SRSError):
    """
    Unsupported dataset for read function
    """
    pass

Unsupported dataset for read function

Ancestors

  • SRSError
  • builtins.Exception
  • builtins.BaseException