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