CryptographicException.cs 873 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // System.Security.Cryptography.CryptographicException.cs
  3. //
  4. // Author:
  5. // Thomas Neidhart ([email protected])
  6. //
  7. using System;
  8. using System.Runtime.Serialization;
  9. namespace System.Security.Cryptography {
  10. [Serializable]
  11. public class CryptographicException : SystemException {
  12. // Constructors
  13. public CryptographicException ()
  14. : base ("Error occured during a cryptographic operation.")
  15. {
  16. }
  17. public CryptographicException (int hr)
  18. {
  19. HResult = hr;
  20. }
  21. public CryptographicException (string message)
  22. : base (message)
  23. {
  24. }
  25. public CryptographicException (string message, Exception inner)
  26. : base (message, inner)
  27. {
  28. }
  29. public CryptographicException (string format, string insert)
  30. : base (String.Format(format, insert))
  31. {
  32. }
  33. protected CryptographicException (SerializationInfo info, StreamingContext context)
  34. : base (info, context)
  35. {
  36. }
  37. }
  38. }