Various richly-typed exceptions, that also help us deal with string formatting in python where it's easier.
By putting the formatting in __str__
, we also avoid paying the cost for
users who silence the exceptions.
Class | _ArrayMemoryError |
Thrown when an array cannot be allocated |
Class | _UFuncBinaryResolutionError |
Thrown when a binary resolution fails |
Class | _UFuncCastingError |
Undocumented |
Class | _UFuncInputCastingError |
Thrown when a ufunc input cannot be casted |
Class | _UFuncNoLoopError |
Thrown when a ufunc loop cannot be found |
Class | _UFuncOutputCastingError |
Thrown when a ufunc output cannot be casted |
Class | UFuncTypeError |
Base class for all ufunc exceptions |
Function | _display_as_base |
A decorator that makes an exception class look like its base. |
Function | _unpack_tuple |
Undocumented |
A decorator that makes an exception class look like its base.
We use this to hide subclasses that are implementation details - the user should catch the base type, which is what the traceback will show them.
Classes decorated with this decorator are subject to removal without a deprecation warning.