mcsas.utils.error module

Some Error classes.

exception AppError(msg='')[source]

Bases: Exception

classmethod getMessage(msg='')[source]

Warning

method ‘utils.error.AppError.getMessage’ undocumented

msg = ''

General error with descriptive message to be forwarded and shown to the user in a message box.

exception EmptySelection(msg='')[source]

Bases: utils.error.AppError

exception FileError(msg, fn)[source]

Bases: utils.error.AppError

exception InitError(msg='')[source]

Bases: utils.error.AppError

exception LoadError(msg='')[source]

Bases: utils.error.AppError

exception VerboseError[source]

Bases: utils.error.AppError

Verbose Exception containing class and method where it was raised. A cache makes sure VerboseErrors with the same name can be matched.

classmethod new(name, msg='')[source]

Creates an exception dynamically. Remembers previous ones for testing

classmethod prefix(msg)[source]

Retrieves some meta info to decribe the error further.