Exemplo n.º 1
0
 def __init__(self, msg, *args):
     """Constructor: initialise EasyBuildError instance."""
     if args:
         msg = msg % args
     LoggedException.__init__(self, msg)
     self.msg = msg
Exemplo n.º 2
0
def raise_loggedexception(msg, *args, **kwargs):
    """Utility function: just raise a LoggedException."""
    raise LoggedException(msg, *args, **kwargs)
Exemplo n.º 3
0
 def __init__(self, msg, *args):
     """Constructor: initialise EasyBuildError instance."""
     if args:
         msg = msg % args
     LoggedException.__init__(self, msg)
     self.msg = msg