Source code for scholar_flux.exceptions.path_exceptions

## path_exceptions.py
"""The scholar_flux.exceptions.path_exceptions module implements the fundamental exception types necessary to interact
with various path processing utilities while accounting for any potential errors that are specific to path
processing."""


[docs] class PathUtilsError(Exception): """Exception class raised for invalid operations in Path Utilities.""" pass
[docs] class InvalidProcessingPathError(PathUtilsError): """Exception class raised for invalid operations on ProcessingPaths.""" pass
[docs] class InvalidComponentTypeError(PathUtilsError): """Exception class raised for invalid inputs to ProcessingPath component types.""" pass
[docs] class PathSimplificationError(PathUtilsError): """Exception raised for when encountering invalid values during simplification.""" pass
[docs] class InvalidPathDelimiterError(InvalidProcessingPathError): """Exception raised for invalid delimiters used in ProcessingPath.""" pass
[docs] class PathIndexingError(InvalidProcessingPathError): """Exception raised when attempting to retrieve the first element of attempting ProcessingPath as a record/page index.""" pass
[docs] class InvalidPathNodeError(PathUtilsError): """Exception raised for invalid operations resulting from the handling of PathNodes.""" pass
[docs] class RecordPathChainMapError(PathUtilsError): """Exception raised for invalid operations on a RecordPathChainMap.""" pass
[docs] class PathNodeIndexError(PathUtilsError): """Exception raised when performing an invalid operation on a PathNodeIndex.""" pass
[docs] class PathCombinationError(PathUtilsError): """Exception raised when performing an invalid operation during the combination of athNodes within a PathNodeIndex.""" pass
[docs] class PathCacheError(PathUtilsError): """Exception raised when attempting to perform an invalid operation on path cache.""" pass
[docs] class PathNodeMapError(PathUtilsError): """Exception raised when attempting to perform an invalid operation a PathNodeMap.""" pass
[docs] class RecordPathNodeMapError(PathNodeMapError): """Exception raised when attempting to perform an invalid operation a RecordPathNodeMap.""" pass
[docs] class PathDiscoveryError(PathUtilsError): """Exception raised for invalid operations resulting from the handling of PathNodes.""" pass
__all__ = [ "PathUtilsError", "InvalidProcessingPathError", "InvalidComponentTypeError", "PathSimplificationError", "InvalidPathDelimiterError", "PathIndexingError", "InvalidPathNodeError", "RecordPathNodeMapError", "RecordPathChainMapError", "PathNodeIndexError", "PathCombinationError", "PathCacheError", "PathNodeMapError", "PathDiscoveryError", ]