urbanoctowaddle.example_numpy.ExampleError¶
-
exception
urbanoctowaddle.example_numpy.
ExampleError
(msg, code)[source]¶ Exceptions are documented in the same way as classes.
The __init__ method may be documented in either the class level docstring, or as a docstring on the __init__ method itself.
Either form is acceptable, but the two should not be mixed. Choose one convention to document the __init__ method and be consistent with it.
Note
Do not include the self parameter in the
Parameters
section.Parameters: - msg (str) – Human readable string describing the exception.
- code (
int
, optional) – Numeric error code.
-
msg
¶ str – Human readable string describing the exception.
-
code
¶ int – Numeric error code.