2002-01-14 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / class / corlib / System / ArgumentOutOfRangeException.cs
1 //
2 // System.ArgumentOutOfRangeException.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
12 namespace System {
13
14         public class ArgumentOutOfRangeException : ArgumentException {
15                 private object actual_value;
16
17                 // Constructors
18                 public ArgumentOutOfRangeException ()
19                         : base (Locale.GetText ("Argument is out of range"))
20                 {
21                 }
22
23                 public ArgumentOutOfRangeException (string param_name)
24                         : base (Locale.GetText ("Argument is out of range"), param_name)
25                 {
26                 }
27
28                 public ArgumentOutOfRangeException (string param_name, string message)
29                         : base (message, param_name)
30                 {
31                 }
32
33                 public ArgumentOutOfRangeException (string param_name, object actual_value, string message)
34                         : base (message, param_name)
35                 {
36                         this.actual_value = actual_value;
37                 }
38
39                 // Properties
40                 public virtual object ActualValue {
41                         get {
42                                 return actual_value;
43                         }
44                 }
45         }
46 }