Salome HOME
Fix Platine test
[modules/shaper.git] / src / PythonAPI / model / errors.py
1 # Package exceptions
2
3 class ModelError(Exception):
4     """Base class for exceptions in this package."""
5     pass
6
7 class WrongNumberOfArguments(ModelError):
8     """Exception raised when a wrong number of arguments is given."""
9     pass
10
11 class FeatureInputInvalid(ModelError):
12     """Exception raised if a feature input is invalid."""
13     pass
14
15     #Attributes:
16         #expr -- input expression in which the error occurred
17         #msg  -- explanation of the error
18     #"""
19
20     #def __init__(self, expr, msg):
21         #self.expr = expr
22         #self.msg = msg