2001-07-06 Joe Shaw <joe@ximian.com>
[mono.git] / mcs / class / corlib / System / NotFiniteNumberException.cs
1 //
2 // System.NotFiniteNumberException.cs
3 //
4 // Author:
5 //   Joe Shaw (joe@ximian.com)
6 //
7 // (C) 2001 Ximian, Inc.  http://www.ximian.com
8 //
9
10 namespace System {
11
12         public class NotFiniteNumberException : ArithmeticException {
13                 double offending_number;
14
15                 // Constructors
16                 public NotFiniteNumberException ()
17                         : base ("The number encountered was not a finite quantity")
18                 {
19                 }
20
21                 public NotFiniteNumberException (double offending_number)
22                 {
23                         this.offending_number = offending_number;
24                 }
25
26                 public NotFiniteNumberException (string message)
27                         : base (message)
28                 {
29                 }
30
31                 public NotFiniteNumberException (string message, double offending_number)
32                 {
33                         this.offending_number = offending_number;
34                 }
35
36                 public NotFiniteNumberException (string message, double offending_number, Exception inner)
37                         : base (message, inner)
38                 {
39                         this.offending_number = offending_number;
40                 }
41
42                 // Properties
43                 public virtual double OffendingNumber {
44                         get {
45                                 return offending_number;
46                         }
47                 }
48         }
49 }