Mercurial > repos > bgruening > silicos_it
view qed/errors.py @ 21:c1e74b30da3f
ChemicalToolBoX update.
author | Bjoern Gruening <bjoern.gruening@gmail.com> |
---|---|
date | Mon, 22 Jul 2013 18:41:18 +0200 |
parents | 80efb29755f3 |
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