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 method OverflowException(); public method OverflowException(string message); public method OverflowException(string message, Exception innerException); // Protected Constructors protected method 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 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.