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(stringmessage
); public OverflowException(stringmessage
, ExceptioninnerException
); // Protected Constructors protected OverflowException(System.Runtime.Serialization.SerializationInfoinfo
, System.Runtime.Serialization.StreamingContextcontext
); }
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.