InvalidCipherTextException.cs 1017 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
  5. {
  6. /**
  7. * this exception is thrown whenever we find something we don't expect in a
  8. * message.
  9. */
  10. #if !(NETCF_1_0 || NETCF_2_0 || SILVERLIGHT || PORTABLE || NETFX_CORE)
  11. [Serializable]
  12. #endif
  13. public class InvalidCipherTextException
  14. : CryptoException
  15. {
  16. /**
  17. * base constructor.
  18. */
  19. public InvalidCipherTextException()
  20. {
  21. }
  22. /**
  23. * create a InvalidCipherTextException with the given message.
  24. *
  25. * @param message the message to be carried with the exception.
  26. */
  27. public InvalidCipherTextException(
  28. string message)
  29. : base(message)
  30. {
  31. }
  32. public InvalidCipherTextException(
  33. string message,
  34. Exception exception)
  35. : base(message, exception)
  36. {
  37. }
  38. }
  39. }
  40. #pragma warning restore
  41. #endif