ArgumentOutOfRangeException.cs 870 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // System.ArgumentOutOfRangeException.cs
  3. //
  4. // Author:
  5. // Joe Shaw ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc. http://www.ximian.com
  8. //
  9. namespace System {
  10. public class ArgumentOutOfRangeException : ArgumentException {
  11. private object actual_value;
  12. // Constructors
  13. public ArgumentOutOfRangeException ()
  14. : base ("Argument is out of range")
  15. {
  16. }
  17. public ArgumentOutOfRangeException (string param_name)
  18. : base ("Argument is out of range", param_name)
  19. {
  20. }
  21. public ArgumentOutOfRangeException (string param_name, string message)
  22. : base (message, param_name)
  23. {
  24. }
  25. public ArgumentOutOfRangeException (string param_name, object actual_value, string message)
  26. : base (message, param_name)
  27. {
  28. this.actual_value = actual_value;
  29. }
  30. // Properties
  31. public virtual object ActualValue {
  32. get {
  33. return actual_value;
  34. }
  35. }
  36. }
  37. }