PolicyException.cs 812 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // System.PolicyException.cs
  3. //
  4. // Author:
  5. // Duncan Mak ([email protected])
  6. //
  7. // 2002 (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. using System;
  10. using System.Globalization;
  11. using System.Runtime.Serialization;
  12. namespace System.Security.Policy
  13. {
  14. [Serializable]
  15. public class PolicyException : SystemException
  16. {
  17. // Constructors
  18. public PolicyException ()
  19. : base (Locale.GetText ("Cannot run because of policy."))
  20. {
  21. }
  22. public PolicyException (string message)
  23. : base (message)
  24. {
  25. }
  26. protected PolicyException (SerializationInfo info,
  27. StreamingContext context)
  28. : base (info, context)
  29. {
  30. }
  31. public PolicyException (string message, Exception innerException)
  32. :base (message, innerException)
  33. {
  34. }
  35. }
  36. }