hup.errors package¶
Module contents¶
Errors and Exceptions.
-
exception
ColumnLookupError
(colname: int)¶ Bases:
hup.errors.TableError
,LookupError
Column Lookup Error.
-
exception
ConnectError
(msg: str)¶ Bases:
hup.errors.ProxyError
Raise when a proxy connection can not be established.
-
exception
DirNotEmptyError
(msg: str)¶ Bases:
hup.errors.UserAssert
,OSError
Raise on remove requests on non-empty directories.
-
exception
DisconnectError
(msg: str)¶ Bases:
hup.errors.ProxyError
Raise when a proxy connection can not be closed.
-
exception
DublicateError
(name: str, dubl: set)¶ Bases:
hup.errors.UserAssert
,ValueError
Raise when a collection contains dublicates.
-
exception
ExistsError
(msg: str)¶ Bases:
hup.errors.UserAssert
,LookupError
Raise when an already existing unique object shall be created.
-
exception
FileFormatError
(name: str, fmt: str)¶ Bases:
hup.errors.UserAssert
,OSError
Raise when a referenced file has an invalid file format.
-
exception
FileNotGivenError
(msg: str)¶ Bases:
hup.errors.UserAssert
,OSError
Raise when a file or directory is required, but not given.
-
exception
FoundError
(msg: str)¶ Bases:
hup.errors.UserAssert
,LookupError
Raise when an already registered unique object shall be registered.
-
exception
InvalidAttrError
(obj: object, attr: str)¶ Bases:
hup.errors.UserAssert
,AttributeError
Raise when a not existing attribute is called.
-
exception
InvalidClassError
(name: str, obj: object, cls: type)¶ Bases:
hup.errors.UserAssert
,TypeError
Raise when an object is required to be of a given subclass.
-
exception
InvalidFormatError
(name: str, val: str, fmt: str)¶ Bases:
hup.errors.UserAssert
,ValueError
Rasise when a string has an invalid format.
-
exception
InvalidTypeError
(name: str, obj: object, info: object = None)¶ Bases:
hup.errors.UserAssert
,TypeError
Raise when an object is required to be of a given type.
-
exception
IsNegativeError
(name: str, val: numbers.Number)¶ Bases:
hup.errors.UserAssert
,ValueError
Raise when a value may not be negative.
-
exception
IsPositiveError
(name: str, val: numbers.Number)¶ Bases:
hup.errors.UserAssert
,ValueError
Raise when a value may not be positive.
-
exception
ItemNotFoundError
(name: str, val: Any, container: str)¶ Bases:
hup.errors.UserAssert
,ValueError
Raise when an item is not found within a container.
-
exception
MaxSizeError
(name: str, obj: collections.abc.Sized, max_len: int)¶ Bases:
hup.errors.UserAssert
,ValueError
Raise when a container has too many elements.
-
exception
MinSizeError
(name: str, obj: collections.abc.Sized, min_len: int)¶ Bases:
hup.errors.UserAssert
,ValueError
Raise when a sized object has too few elements.
-
exception
MissingKwError
(argname: str, obj: Callable)¶ Bases:
hup.errors.UserAssert
,TypeError
Raise when a required keyword argument is not given.
-
exception
NoSubsetError
(a: str, seta: set, b: str, setb: set)¶ Bases:
hup.errors.UserAssert
,ValueError
Raise when sequence elements are not contained within another.
-
exception
NotCallableError
(name: str, obj: object)¶ Bases:
hup.errors.UserAssert
,TypeError
Raise when an object is required to be callable.
-
exception
NotClassError
(name: str, obj: object)¶ Bases:
hup.errors.UserAssert
,TypeError
Raise when an object is required to be a class.
-
exception
NotExistsError
(msg: str)¶ Bases:
hup.errors.UserAssert
,LookupError
Raise when a non existing unique object is requested.
-
exception
NotFoundError
(msg: str)¶ Bases:
hup.errors.UserAssert
,LookupError
Raise when a unique object is not found in a registry.
-
exception
NotNegativeError
(name: str, val: numbers.Number)¶ Bases:
hup.errors.UserAssert
,ValueError
Raise when a value must be negative.
-
exception
NotPositiveError
(name: str, val: numbers.Number)¶ Bases:
hup.errors.UserAssert
,ValueError
Raise when a value must be positive.
-
exception
ProxyError
(msg: str)¶ Bases:
hup.errors.UserError
Base Exception for Proxy Errors.
-
exception
PullError
(msg: str)¶ Bases:
hup.errors.ProxyError
Raise when a pull-request could not be finished.
-
exception
PushError
(msg: str)¶ Bases:
hup.errors.ProxyError
Raise when a push-request could not be finished.
-
exception
ReadOnlyAttrError
(obj: object, attr: str)¶ Bases:
hup.errors.UserAssert
,AttributeError
Raise when a read-only attribute’s setter method is called.
-
exception
RowLookupError
(rowid: int)¶ Bases:
hup.errors.TableError
,LookupError
Row Lookup Error.
-
exception
SizeError
(name: str, obj: collections.abc.Sized, size: int)¶ Bases:
hup.errors.UserAssert
,ValueError
Raise when a sized object has an invalid size.
-
exception
TableError
(msg: str)¶ Bases:
hup.errors.UserError
Base Exception for Table Errors.
-
exception
UserAssert
(msg: str)¶ Bases:
hup.errors.UserError
,AssertionError
Exception for user asserts.
-
exception
UserError
(msg: str)¶ Bases:
hup.errors.UserException
Exception for user errors.