Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/exceptions.py
Commit message (Collapse)AuthorAgeFilesLines
* Properly print error message of exceptionsArthur de Jong2016-08-281-1/+1
| | | | | This ensures that the message passed to the constructor is shown in the traceback while falling back to the class default.
* Provide a module with validation exceptionsArthur de Jong2013-06-081-0/+66
This introduces a new module for switching the validation scheme. Instead of using the is_valid() function that returns a boolean a validate() function either returns the sanitised number or raises an exception that should indicate the kind of validation failure. This should make it easier for applications calling this library to present more informative messages to the user.