March 2002
Intermediate to advanced
864 pages
31h 8m
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 method ArithmeticException(); public method ArithmeticException(string message); public method ArithmeticException(string message, Exception innerException); // Protected Constructors protected method ArithmeticException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context); }
Object→Exception(System.Runtime.Serialization.ISerializable)→SystemException→ArithmeticException
DivideByZeroException, NotFiniteNumberException, OverflowException