InvalidCipherTextException.cs 947 B

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