O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NotFiniteNumberException

Synopsis

This exception is thrown when certain languages encounter floating-point infinity or NaN (not a number) values. C# represents these values with Double.NegativeInfinity, Double.PositiveInfinity, and Double.NaN. (Similar fields are available in Single.)

public class NotFiniteNumberException : ArithmeticException {
// Public Constructors
   public method NotFiniteNumberException();  
   public method NotFiniteNumberException(
        double offendingNumber);  
   public method NotFiniteNumberException(string message);  
   public method NotFiniteNumberException(string message, 
        double offendingNumber);  
   public method NotFiniteNumberException(string message, 
        double offendingNumber, Exception innerException);  
// Protected Constructors
   protected method NotFiniteNumberException(
        System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);  
// Public Instance Properties
   public field double OffendingNumber{get; } 
// Public Instance Methods
   public override method void GetObjectData(                   // overrides Exception
        System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);  
}

Hierarchy

ObjectException(System.Runtime.Serialization.ISerializable)SystemExceptionArithmeticExceptionNotFiniteNumberException

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required