sasdata.data_util.loader_exceptions module

Exceptions specific to loading data.

exception sasdata.data_util.loader_exceptions.DataReaderException(e: str | None = None)

Bases: Exception

Exception for files that were able to mostly load, but had minor issues along the way. Any exceptions of this type should be put into the datainfo.errors

__annotate_func__ = None
__annotations_cache__ = {}
__doc__ = '\nException for files that were able to mostly load, but had minor issues\nalong the way.\nAny exceptions of this type should be put into the datainfo.errors\n'
__firstlineno__ = 36
__init__(e: str | None = None)
__module__ = 'sasdata.data_util.loader_exceptions'
__static_attributes__ = ('message',)
__weakref__

list of weak references to the object

exception sasdata.data_util.loader_exceptions.DefaultReaderException(e: str | None = None)

Bases: Exception

Exception for files with no associated reader. This should be thrown by default readers only to tell Loader to try the next reader.

__annotate_func__ = None
__annotations_cache__ = {}
__doc__ = '\nException for files with no associated reader. This should be thrown by\ndefault readers only to tell Loader to try the next reader.\n'
__firstlineno__ = 18
__init__(e: str | None = None)
__module__ = 'sasdata.data_util.loader_exceptions'
__static_attributes__ = ('message',)
__weakref__

list of weak references to the object

exception sasdata.data_util.loader_exceptions.FileContentsException(e: str | None = None)

Bases: Exception

Exception for files with an associated reader, but with no loadable data. This is useful for catching loader or file format issues.

__annotate_func__ = None
__annotations_cache__ = {}
__doc__ = '\nException for files with an associated reader, but with no loadable data.\nThis is useful for catching loader or file format issues.\n'
__firstlineno__ = 27
__init__(e: str | None = None)
__module__ = 'sasdata.data_util.loader_exceptions'
__static_attributes__ = ('message',)
__weakref__

list of weak references to the object

exception sasdata.data_util.loader_exceptions.NoKnownLoaderException(e: str | None = None)

Bases: Exception

Exception for files with no associated reader based on the file extension of the loaded file. This exception should only be thrown by loader.py.

__annotate_func__ = None
__annotations_cache__ = {}
__doc__ = '\nException for files with no associated reader based on the file\nextension of the loaded file. This exception should only be thrown by\nloader.py.\n'
__firstlineno__ = 8
__init__(e: str | None = None)
__module__ = 'sasdata.data_util.loader_exceptions'
__static_attributes__ = ('message',)
__weakref__

list of weak references to the object