August 2003
Intermediate to advanced
928 pages
32h 1m
English
ArithmeticException
This is the base class for all math-related exceptions. You can throw this class from your own code, but use a subclass (if one exists) that specifically addresses the type of error you have encountered.
public class ArithmeticException : SystemException { // Public Constructors public ArithmeticException( ); public ArithmeticException(stringmessage); public ArithmeticException(stringmessage, ExceptioninnerException); // Protected Constructors protected ArithmeticException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); }
Object
→
Exception(System.Runtime.Serialization.ISerializable)
→
SystemException
→
ArithmeticException
DivideByZeroException,
NotFiniteNumberException,
OverflowException