textformer.utils.exception

Exceptions.

exception textformer.utils.exception.ArgumentError(error)

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

__init__(self, error)

Initialization method.

Parameters

error (str) – Error message to be logged.

exception textformer.utils.exception.BuildError(error)

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

__init__(self, error)

Initialization method.

Parameters

error (str) – Error message to be logged.

exception textformer.utils.exception.Error(cls, msg)

A generic Error class derived from Exception.

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

__init__(self, cls, msg)

Initialization method.

Parameters
  • cls (str) – Class identifier.

  • msg (str) – Message to be logged.

exception textformer.utils.exception.SizeError(error)

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

__init__(self, error)

Initialization method.

Parameters

error (str) – Error message to be logged.

exception textformer.utils.exception.TypeError(error)

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

__init__(self, error)

Initialization method.

Parameters

error (str) – Error message to be logged.

exception textformer.utils.exception.ValueError(error)

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

__init__(self, error)

Initialization method.

Parameters

error (str) – Error message to be logged.