CryptographicException.cs 764 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. public class CryptographicException : SystemException {
  10. // Constructors
  11. public CryptographicException ()
  12. : base ("Error occured during a cryptographic operation.")
  13. {
  14. }
  15. public CryptographicException (int hr)
  16. {
  17. HResult = hr;
  18. }
  19. public CryptographicException (string message)
  20. : base (message)
  21. {
  22. }
  23. public CryptographicException (string message, Exception inner)
  24. : base (message, inner)
  25. {
  26. }
  27. public CryptographicException (string format, string insert)
  28. : base (String.Format(format, insert))
  29. {
  30. }
  31. }
  32. }