Source code for logsuite.exceptions

"""
Custom exceptions for well log toolkit.
"""


[docs] class WellLogError(Exception): """Base exception for all well log toolkit errors.""" pass
[docs] class LasFileError(WellLogError): """Raised when LAS file parsing or validation fails.""" pass
[docs] class UnsupportedVersionError(LasFileError): """Raised when LAS version is not supported.""" pass
[docs] class PropertyError(WellLogError): """Raised when property operations fail.""" pass
[docs] class PropertyNotFoundError(PropertyError): """Raised when requested property doesn't exist.""" pass
[docs] class PropertyTypeError(PropertyError): """Raised when property type is incorrect for operation.""" pass
[docs] class WellError(WellLogError): """Raised when well operations fail.""" pass
[docs] class WellNameMismatchError(WellError): """Raised when LAS well name doesn't match target well.""" pass
[docs] class DepthAlignmentError(WellLogError): """Raised when depth grids cannot be aligned.""" pass