Source code for superduperdb.base.exceptions

from superduperdb import logging


[docs] class ComponentInUseError(Exception): pass
[docs] class ComponentInUseWarning(Warning): pass
[docs] class BaseException(Exception): ''' BaseException which logs a message after exception ''' def __init__(self, msg): self.msg = msg logging.exception(self.msg, e=self) def __str__(self): return self.msg
[docs] class RequiredPackageVersionsNotFound(ImportError): ''' Exception raised when one or more required packages are not found. '''
[docs] class RequiredPackageVersionsWarning(ImportWarning): ''' Exception raised when one or more required packages are not found. '''
[docs] class ServiceRequestException(BaseException): ''' ServiceRequestException '''
[docs] class QueryException(BaseException): ''' QueryException '''
[docs] class DatabackendException(BaseException): ''' DatabackendException '''
[docs] class MetadataException(BaseException): ''' MetadataException '''
[docs] class ComponentException(BaseException): ''' ComponentException '''