C # in a Nutshell, Second Edition

OverflowException CF 1.0, ECMA 1.0, serializable

System (mscorlib.dll) class

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

Категории