CryptographicException.cs 781 B

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