Name

DivideByZeroException

Synopsis

This exception is thrown when a math operation attempts to divide by zero.

public class DivideByZeroException : ArithmeticException {
// Public Constructors
   public method DivideByZeroException();  
   public method DivideByZeroException(string message);  
   public method DivideByZeroException(string message, 
        Exception innerException);  
// Protected Constructors
   protected method DivideByZeroException(
        System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);  
}

Hierarchy

ObjectException(System.Runtime.Serialization.ISerializable)SystemExceptionArithmeticExceptionDivideByZeroException

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.