File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -493,13 +493,16 @@ guide you in choosing from the most relevant exceptions to Sage. Raise
493
493
like) but the input is not appropriate.
494
494
495
495
- `ZeroDivisionError
496
- <https://docs.python.org/3/library/exceptions.html#ZeroDivisionError> `_: if the
497
- method performs division but the input is zero. Note that for non-invertible
498
- input values, ``ArithmeticError `` is more appropriate.
496
+ <https://docs.python.org/3/library/exceptions.html#ZeroDivisionError> `_: if
497
+ the method performs division but the input is zero. Note that for
498
+ non-invertible input values, ``ArithmeticError `` is more appropriate. As
499
+ derived from ``ArithmeticError ``, ``ZeroDivisionError `` can be caught as
500
+ ``ArithmeticError ``.
499
501
500
502
- `NotImplementedError
501
503
<https://docs.python.org/3/library/exceptions.html#NotImplementedError> `_: if
502
- the input is for a feature not yet implemented by the method.
504
+ the input is for a feature not yet implemented by the method. Note that
505
+ ``NotImplementedError `` is derived from ``RuntimeError ``.
503
506
504
507
If no specific error seems to apply for your situation, `RuntimeError
505
508
<https://docs.python.org/3/library/exceptions.html#RuntimeError> `_ can be used.
You can’t perform that action at this time.
0 commit comments