Compare commits

..

1 Commits

Author SHA1 Message Date
Tim Van Baak 7645c85c9d Make backend argument type errors more specific 2021-08-13 17:23:03 -07:00
1 changed files with 2 additions and 2 deletions

View File

@ -8,10 +8,10 @@ class AmanuensisError(Exception):
class ArgumentError(AmanuensisError): class ArgumentError(AmanuensisError):
"""An internal call was made with invalid arguments""" """An internal call was made with invalid arguments."""
class BackendArgumentTypeError(AmanuensisError): class BackendArgumentTypeError(ArgumentError):
""" """
A call to a backend function was made with a value of an invalid type for the parameter. A call to a backend function was made with a value of an invalid type for the parameter.
Specify the invalid parameter and value as a kwarg. Specify the invalid parameter and value as a kwarg.