LicenseException.cs 963 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // System.ComponentModel.LicenseException.cs
  3. //
  4. // Authors:
  5. // Martin Willemoes Hansen ([email protected])
  6. // Andreas Nahr ([email protected])
  7. //
  8. // (C) 2003 Martin Willemoes Hansen
  9. // (C) 2003 Andreas Nahr
  10. //
  11. namespace System.ComponentModel
  12. {
  13. public class LicenseException : SystemException
  14. {
  15. private Type type;
  16. public LicenseException (Type type)
  17. : this (type, null)
  18. {
  19. }
  20. public LicenseException (Type type, object instance)
  21. {
  22. // LAMESPEC what should we do with instance?
  23. this.type = type;
  24. }
  25. public LicenseException (Type type, object instance,
  26. string message)
  27. : this (type, instance, message, null)
  28. {
  29. }
  30. public LicenseException (Type type, object instance,
  31. string message,
  32. Exception innerException)
  33. : base (message, innerException)
  34. {
  35. // LAMESPEC what should we do with instance?
  36. this.type = type;
  37. }
  38. public Type LicensedType {
  39. get { return type; }
  40. }
  41. }
  42. }