dualing.utils.exception

Exceptions.

exception dualing.utils.exception.ArgumentError(error: str)

An ArgumentError class for logging errors related to wrong number of provided arguments.

__init__(self, error: str)

Initialization method.

Parameters

error – Error message to be logged.

exception dualing.utils.exception.BuildError(error: str)

A BuildError class for logging errors related to classes not being built.

__init__(self, error: str)

Initialization method.

Parameters

error – Error message to be logged.

exception dualing.utils.exception.Error(cls: str, msg: str)

A generic Error class derived from Exception.

Essentially, it gets the class and message and logs the error to the logger.

__init__(self, cls: str, msg: str)

Initialization method.

Parameters
  • cls – Class identifier.

  • msg – Message to be logged.

exception dualing.utils.exception.SizeError(error: str)

A SizeError class for logging errors related to wrong length or size of variables.

__init__(self, error: str)

Initialization method.

Parameters

error – Error message to be logged.

exception dualing.utils.exception.TypeError(error: str)

A TypeError class for logging errors related to wrong type of variables.

__init__(self, error: str)

Initialization method.

Parameters

error – Error message to be logged.

exception dualing.utils.exception.ValueError(error: str)

A ValueError class for logging errors related to wrong value of variables.

__init__(self, error: str)

Initialization method.

Parameters

error – Error message to be logged.

dualing.utils.exception.logger