Module pyaurorax.exceptions

Unique exception classes utilized by PyAuroraX. 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 pyaurorax.AuroraXError or AuroraXError.

Classes

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

Error occurred during an API call

Ancestors

class AuroraXConflictError (*args, **kwargs)
Expand source code
class AuroraXConflictError(AuroraXError):
    """
    A conflict occurred while modifying records
    """
    pass

A conflict occurred while modifying records

Ancestors

class AuroraXDataRetrievalError (*args, **kwargs)
Expand source code
class AuroraXDataRetrievalError(AuroraXError):
    """
    Error occurred while retrieving search data
    """
    pass

Error occurred while retrieving search data

Ancestors

class AuroraXDownloadError (*args, **kwargs)
Expand source code
class AuroraXDownloadError(AuroraXError):
    """
    Error occurred during downloading of data

    NOTE: this is primarily a PyUCalgarySRS error
    """
    pass

Error occurred during downloading of data

NOTE: this is primarily a PyUCalgarySRS error

Ancestors

class AuroraXDuplicateError (*args, **kwargs)
Expand source code
class AuroraXDuplicateError(AuroraXError):
    """
    A duplicate record already exists
    """
    pass

A duplicate record already exists

Ancestors

class AuroraXError (*args, **kwargs)
Expand source code
class AuroraXError(Exception):

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

Common base class for all non-exit exceptions.

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses

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

Error occurred during library initialization

Ancestors

class AuroraXMaintenanceError (*args, **kwargs)
Expand source code
class AuroraXMaintenanceError(AuroraXError):
    """
    AuroraX API is in maintenance mode, read-only tasks are only possible
    """
    pass

AuroraX API is in maintenance mode, read-only tasks are only possible

Ancestors

class AuroraXNotFoundError (*args, **kwargs)
Expand source code
class AuroraXNotFoundError(AuroraXError):
    """
    The AuroraX record was not found
    """
    pass

The AuroraX record was not found

Ancestors

class AuroraXPurgeError (*args, **kwargs)
Expand source code
class AuroraXPurgeError(AuroraXError):
    """
    Error occurred during purging of download or tar extraction working directory
    """
    pass

Error occurred during purging of download or tar extraction working directory

Ancestors

class AuroraXSearchError (*args, **kwargs)
Expand source code
class AuroraXSearchError(AuroraXError):
    """
    An error occurred in the API while performing a search
    """
    pass

An error occurred in the API while performing a search

Ancestors

class AuroraXUnauthorizedError (*args, **kwargs)
Expand source code
class AuroraXUnauthorizedError(AuroraXError):
    """
    A privileged operation was attempted without authorization
    """
    pass

A privileged operation was attempted without authorization

Ancestors

class AuroraXUnsupportedReadError (*args, **kwargs)
Expand source code
class AuroraXUnsupportedReadError(AuroraXError):
    """
    Unsupported dataset for read function

    NOTE: this is primarily a PyUCalgarySRS error
    """
    pass

Unsupported dataset for read function

NOTE: this is primarily a PyUCalgarySRS error

Ancestors

class AuroraXUploadError (*args, **kwargs)
Expand source code
class AuroraXUploadError(AuroraXError):
    """
    Error occurred during upload operation
    """
    pass

Error occurred during upload operation

Ancestors