mafw.mafw_errors

Module defines MAFw exceptions

Exceptions

AbortProcessorException

Exception raised during the execution of a processor requiring immediate exit.

InvalidSteeringFile

Exception raised when validating an invalid steering file

MAFwException

Base class for MAFwException

MissingAttribute

Exception raised when an attempt is made to execute a statement without a required parameter/attributes

MissingDatabase

Exception raised when a processor requiring a database connection is being operated without a database

MissingOptionalDependency

UserWarning raised when an optional dependency is required

MissingOverloadedMethod

Warning issued when the user did not overload a required method.

MissingSQLStatement

Exception raised when a Trigger is created without any SQL statements.

MissingSuperCall

Warning issued when the user did not invoke the super method for some specific processor methods.

ModelError

Exception raised when an error in a DB Model class occurs

ParserConfigurationError

Exception raised when an error occurred during the configuration of a filename parser

ParsingError

Exception raised when a regular expression parsing failed

PlotterMixinNotInitialized

Exception raised when a plotter mixin has not properly initialized

ProcessorParameterError

Error with a processor parameter

RunnerNotInitialized

Exception raised when attempting to run a not initialized Runner.

UnknownDBEngine

Exception raised when the user provided an unknown db engine

UnknownProcessor

Exception raised when an attempt is made to create an unknown processor

UnsupportedDatabaseError

Error raised when a feature is not supported by the database.

exception mafw.mafw_errors.AbortProcessorException[source]

Bases: MAFwException

Exception raised during the execution of a processor requiring immediate exit.

exception mafw.mafw_errors.InvalidSteeringFile[source]

Bases: MAFwException

Exception raised when validating an invalid steering file

exception mafw.mafw_errors.MAFwException[source]

Bases: Exception

Base class for MAFwException

exception mafw.mafw_errors.MissingAttribute[source]

Bases: MAFwException

Exception raised when an attempt is made to execute a statement without a required parameter/attributes

exception mafw.mafw_errors.MissingDatabase[source]

Bases: MAFwException

Exception raised when a processor requiring a database connection is being operated without a database

exception mafw.mafw_errors.MissingOptionalDependency[source]

Bases: UserWarning

UserWarning raised when an optional dependency is required

exception mafw.mafw_errors.MissingOverloadedMethod[source]

Bases: UserWarning

Warning issued when the user did not overload a required method.

It is a warning and not an error because the execution framework might still work, but the results might be different from what is expected.

exception mafw.mafw_errors.MissingSQLStatement[source]

Bases: MAFwException

Exception raised when a Trigger is created without any SQL statements.

exception mafw.mafw_errors.MissingSuperCall[source]

Bases: UserWarning

Warning issued when the user did not invoke the super method for some specific processor methods.

Those methods (like start() and finish()) have not empty implementation also in the base class, meaning that if the user forgets to call super in their overloads, then the basic implementation will be gone.

It is a warning and not an error because the execution framework might sill work, but the results might be different from what is expected.

exception mafw.mafw_errors.ModelError[source]

Bases: MAFwException

Exception raised when an error in a DB Model class occurs

exception mafw.mafw_errors.ParserConfigurationError[source]

Bases: MAFwException

Exception raised when an error occurred during the configuration of a filename parser

exception mafw.mafw_errors.ParsingError[source]

Bases: MAFwException

Exception raised when a regular expression parsing failed

exception mafw.mafw_errors.PlotterMixinNotInitialized[source]

Bases: MAFwException

Exception raised when a plotter mixin has not properly initialized

exception mafw.mafw_errors.ProcessorParameterError[source]

Bases: MAFwException

Error with a processor parameter

exception mafw.mafw_errors.RunnerNotInitialized[source]

Bases: MAFwException

Exception raised when attempting to run a not initialized Runner.

exception mafw.mafw_errors.UnknownDBEngine[source]

Bases: MAFwException

Exception raised when the user provided an unknown db engine

exception mafw.mafw_errors.UnknownProcessor[source]

Bases: MAFwException

Exception raised when an attempt is made to create an unknown processor

exception mafw.mafw_errors.UnsupportedDatabaseError[source]

Bases: Exception

Error raised when a feature is not supported by the database.