On Thursday, February 8, 2024 at 11:15:34 AM UTC+9 Kwankyu Lee wrote:

A method (or function) takes objects as input and computes an output.  The 
INPUT block defines coarsely  the intended class of mathematical objects. 

TypeError: the type (that can be checked by isinstance(obj, class)) of the 
input object does not belong to the intended class of mathematical objects
ValueError: the particular input object is not suitable as input
ArithmeticError: the particular input object is not suitable for arithmetic 
(sum, product, quotient, and the like) operation 
ZeroDivisionError: the method performs division but the input is zero
NotImplementedError: there is no problem with the input object but the 
method is incapable to compute appropriate output.
RuntimeError: The method somehow cannot perform the computation. Perhaps a 
catchall error.


I may add the above to the developer guide. Any comments? 


Implemented in 

https://github.com/sagemath/sage/pull/37311 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/62552750-b841-40c7-8054-d59951d49e76n%40googlegroups.com.

Reply via email to