System Namespace
The exception that is thrown for errors in an arithmetic, casting, or conversion operation.
ArithmeticException is the base class for DivideByZeroException, NotFiniteNumberException, and OverflowException. In general, use one of the derived classes of ArithmeticException to more precisely indicate the exact nature of the error. Throw an ArithmeticException if you are only interested in capturing a general arithmetic error.
ArithmeticException uses the HRESULT COR_E_ARITHMETIC, which has the value 0x80070216.
For a list of initial property values for an instance of ArithmeticException, see the ArithmeticException constructors.
Exception