"""This module provides custom exceptions used throughout the :py:mod:`aodncore.pipeline` package.
"""
from ..common.exceptions import AodnBaseError
__all__ = [
'PipelineProcessingError',
'PipelineSystemError',
'ComplianceCheckFailedError',
'AttributeNotSetError',
'AttributeValidationError',
'DuplicatePipelineFileError',
'HandlerAlreadyRunError',
'InvalidCheckSuiteError',
'InvalidFileContentError',
'InvalidFileFormatError',
'InvalidFileNameError',
'InvalidCheckTypeError',
'InvalidConfigError',
'InvalidPathFunctionError',
'InvalidHandlerError',
'InvalidHarvesterError',
'InvalidHarvestMapError',
'InvalidInputFileError',
'InvalidRecipientError',
'InvalidStoreUrlError',
'MissingConfigParameterError',
'MissingFileError',
'MissingConfigFileError',
'NotificationFailedError',
'StorageBrokerError',
'UnmappedFilesError',
'UnmatchedFilesError',
'UnexpectedCsvFilesError',
'InvalidSchemaError',
'InvalidSQLConnectionError',
'InvalidSQLTransactionError',
'GeonetworkConnectionError',
'GeonetworkRequestError'
]
[docs]class PipelineProcessingError(AodnBaseError):
"""Base class for all exceptions which indicate that there was a problem processing the file as opposed to an
internal configuration or environmental error. Handler classes should typically raise exceptions based on this
exception to signal non-compliance of the file or some other *user correctable* problem.
"""
pass
[docs]class PipelineSystemError(AodnBaseError):
"""Base class for all exceptions *not* related to file processing and which would typically *not* be suitable to
return to an end user
"""
pass
# Processing errors
[docs]class ComplianceCheckFailedError(PipelineProcessingError):
pass
[docs]class InvalidFileNameError(PipelineProcessingError):
pass
[docs]class InvalidFileContentError(PipelineProcessingError):
pass
# System errors
[docs]class AttributeNotSetError(PipelineSystemError):
pass
[docs]class AttributeValidationError(PipelineSystemError):
pass
[docs]class DuplicatePipelineFileError(PipelineSystemError):
pass
[docs]class HandlerAlreadyRunError(PipelineSystemError):
pass
[docs]class InvalidCheckSuiteError(PipelineSystemError):
pass
[docs]class InvalidCheckTypeError(PipelineSystemError):
pass
[docs]class InvalidConfigError(PipelineSystemError):
pass
[docs]class InvalidHandlerError(PipelineSystemError):
pass
[docs]class InvalidHarvesterError(PipelineSystemError):
pass
[docs]class InvalidHarvestMapError(PipelineSystemError):
pass
[docs]class InvalidPathFunctionError(PipelineSystemError):
pass
[docs]class InvalidRecipientError(PipelineSystemError):
pass
[docs]class InvalidStoreUrlError(PipelineSystemError):
pass
[docs]class MissingConfigParameterError(PipelineSystemError):
pass
[docs]class MissingFileError(PipelineSystemError):
pass
[docs]class MissingConfigFileError(PipelineSystemError):
pass
[docs]class NotificationFailedError(PipelineSystemError):
pass
[docs]class StorageBrokerError(PipelineSystemError):
pass
[docs]class UnmappedFilesError(PipelineSystemError):
pass
[docs]class UnmatchedFilesError(PipelineSystemError):
pass
[docs]class UnexpectedCsvFilesError(PipelineSystemError):
pass
[docs]class InvalidSchemaError(PipelineSystemError):
pass
[docs]class InvalidSQLConnectionError(PipelineSystemError):
pass
[docs]class InvalidSQLTransactionError(PipelineSystemError):
pass
[docs]class GeonetworkConnectionError(PipelineSystemError):
pass
[docs]class GeonetworkRequestError(PipelineSystemError):
pass