opytimizer.utils.exception

Exceptions.

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

A generic Error class derived from Exception.

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

__init__(cls: str, msg: str) → None

Initialization method.

Parameters:
  • cls – Class identifier.
  • msg – Message to be logged.
exception opytimizer.utils.exception.ArgumentError(error: str)

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

__init__(error: str) → None

Initialization method.

Parameters:error – Error message to be logged.
exception opytimizer.utils.exception.BuildError(error: str)

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

__init__(error: str) → None

Initialization method.

Parameters:error – Error message to be logged.
exception opytimizer.utils.exception.SizeError(error: str)

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

__init__(error: str) → None

Initialization method.

Parameters:error – Error message to be logged.
exception opytimizer.utils.exception.TypeError(error: str)

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

__init__(error: str) → None

Initialization method.

Parameters:error – Error message to be logged.
exception opytimizer.utils.exception.ValueError(error: str)

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

__init__(error: str) → None

Initialization method.

Parameters:error – Error message to be logged.