Skip to content

exceptions

Module providing custom exceptions.

Authors:

  • Kenneth Hoste (Ghent University)
  • Riccardo Murri (University of Zurich)

LoggedException

Bases: Exception

Exception that logs it's message when it is created.

__init__(msg, *args, **kwargs)

Constructor.

PARAMETER DESCRIPTION
msg

exception message

*args

list of formatting arguments for exception message

DEFAULT: ()

logger

logger to use

get_callers_logger()

Get logger defined in caller's environment

RETURNS DESCRIPTION

logger instance (or None if none was found)