view qed/errors.py @ 1:fdc038522974 draft

Uploaded
author bgruening
date Sat, 24 Aug 2013 17:16:16 -0400
parents bb92d30b4f52
children
line wrap: on
line source

__all__ = ['SilicosItError', 'WrongArgument']

class SilicosItError(Exception):
    """Base class for exceptions in Silicos-it code"""
    pass

class WrongArgument(SilicosItError):
    """
    Exception raised when argument to function is not of correct type.

    Attributes:
        function -- function in which error occurred
        msg      -- explanation of the error
    """
    def __init__(self, function, msg):
        self.function = function
        self.msg = msg