validate¶
-
MultirelModel.
validate
(params=None)[source]¶ Checks both the types and the values of all instance variables and raises an exception if something is off.
- Args:
- params (dict, optional): A dictionary containing
the parameters to validate. If not is passed, the own parameters will be validated.
- Raises:
- KeyError: If an unsupported instance variable is
encountered.
TypeError: If any instance variable is of wrong type. ValueError: If any instance variable does not match its
possible choices (string) or is out of the expected bounds (numerical).