Custom exception to be raised when the parameter of a class/method/function does not have a valid type or value.
| 18 | |
| 19 | |
| 20 | class InvalidParameterError(ValueError, TypeError): |
| 21 | """Custom exception to be raised when the parameter of a class/method/function |
| 22 | does not have a valid type or value. |
| 23 | """ |
| 24 | |
| 25 | # Inherits from ValueError and TypeError to keep backward compatibility. |
| 26 | |
| 27 | |
| 28 | def validate_parameter_constraints(parameter_constraints, params, caller_name): |
no outgoing calls
no test coverage detected
searching dependent graphs…