Define NotANumber as a subclass of ValueError when using class-based
exceptions. When raising NotANumber, pass the string that failed as the exception value.
Showing
Please
register
or
sign in
to comment
exceptions. When raising NotANumber, pass the string that failed as the exception value.