Exceptions Module¶
Exceptions raised by browsepy classes.
-
exception
browsepy.exceptions.
FilenameTooLongError
(message=None, path=None, filename=None, limit=0)[source]¶ Bases:
browsepy.exceptions.InvalidFilenameError
Exception raised when maximum filesystem filename length is reached.
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
browsepy.exceptions.
InvalidFilenameError
(message=None, path=None, filename=None)[source]¶ Bases:
browsepy.exceptions.InvalidPathError
Exception raised when a filename is not valid.
Property filename: value whose length raised this Exception -
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
browsepy.exceptions.
InvalidPathError
(message=None, path=None)[source]¶ Bases:
ValueError
Exception raised when a path is not valid.
Property path: value whose length raised this Exception -
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
browsepy.exceptions.
OutsideDirectoryBase
[source]¶ Bases:
Exception
Exception raised when trying to access to a file outside path defined on directory_base config property.
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
browsepy.exceptions.
OutsideRemovableBase
[source]¶ Bases:
Exception
Exception raised when trying to access to a file outside path defined on directory_remove config property.
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
exception
browsepy.exceptions.
PathTooLongError
(message=None, path=None, limit=0)[source]¶ Bases:
browsepy.exceptions.InvalidPathError
Exception raised when maximum filesystem path length is reached.
Property limit: value length limit -
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-