Name

OverflowException

Synopsis

This exception indicates an attempt to store a value that exceeds the limit of the target type. This could be caused by an arithmetic operation, cast, or conversion.

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

Hierarchy

Object Exception(System.Runtime.Serialization.ISerializable) SystemException ArithmeticException OverflowException

Get C# in a Nutshell, Second Edition 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.