Initializes a new NotFiniteNumberException with a message about the offending number and reference to the exception message.
[Visual Basic] Overloads Public Sub New( _ ByVal message As String, _ ByVal offendingNumber As Double, _ ByVal inner As Exception _ ) [C#] public NotFiniteNumberException( string message, double offendingNumber, Exception inner ); [C++] public: NotFiniteNumberException( String* message, double offendingNumber, Exception* inner ); [JScript] public function NotFiniteNumberException( message : String, offendingNumber : double, inner : Exception );
When handling an exception, it is sometimes helpful to have a reference to the exception(s) that caused the error to occur. You can use this constructor to create a chain of new and more meaningful exceptions with the InnerException property set to the inner exception reference. This more meaningful exception can then be thrown to the caller. Note that with this functionality it is possible to create a series of linked exceptions that terminates with the exception that was first thrown. (See Exception for more information.)
MissingMemberException inherits from the Exception class. This constructor sets the properties of the Exception object as follows:
Property | Value |
---|---|
InnerException | null |
Message | The empty string. |
NotFiniteNumberException Class | NotFiniteNumberException Members | System Namespace | NotFiniteNumberException Constructor Overload List