diff --git a/stdnum/exceptions.py b/stdnum/exceptions.py index 0cb8f128..7a8aacb6 100644 --- a/stdnum/exceptions.py +++ b/stdnum/exceptions.py @@ -1,7 +1,7 @@ # exceptions.py - collection of stdnum exceptions # coding: utf-8 # -# Copyright (C) 2013 Arthur de Jong +# Copyright (C) 2013-2022 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -29,7 +29,7 @@ 'InvalidLength', 'InvalidComponent'] -class ValidationError(Exception): +class ValidationError(ValueError): """Top-level error for validating numbers. This exception should normally not be raised, only subclasses of this