2002-01-14 Miguel de Icaza <miguel@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 using System.Globalization;
11 namespace System {
12
13         public class NotFiniteNumberException : ArithmeticException {
14                 double offending_number;
15
16                 // Constructors
17                 public NotFiniteNumberException ()
18                         : base (Locale.GetText ("The number encountered was not a finite quantity"))
19                 {
20                 }
21
22                 public NotFiniteNumberException (double offending_number)
23                 {
24                         this.offending_number = offending_number;
25                 }
26
27                 public NotFiniteNumberException (string message)
28                         : base (message)
29                 {
30                 }
31
32                 public NotFiniteNumberException (string message, double offending_number)
33                 {
34                         this.offending_number = offending_number;
35                 }
36
37                 public NotFiniteNumberException (string message, double offending_number, Exception inner)
38                         : base (message, inner)
39                 {
40                         this.offending_number = offending_number;
41                 }
42
43                 // Properties
44                 public virtual double OffendingNumber {
45                         get {
46                                 return offending_number;
47                         }
48                 }
49         }
50 }