DataLengthException.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 if a buffer that is meant to have output
  8. * copied into it turns out to be too short, or if we've been given
  9. * insufficient input. In general this exception will Get thrown rather
  10. * than an ArrayOutOfBounds exception.
  11. */
  12. #if !(NETCF_1_0 || NETCF_2_0 || SILVERLIGHT || PORTABLE || NETFX_CORE)
  13. [Serializable]
  14. #endif
  15. public class DataLengthException
  16. : CryptoException
  17. {
  18. /**
  19. * base constructor.
  20. */
  21. public DataLengthException()
  22. {
  23. }
  24. /**
  25. * create a DataLengthException with the given message.
  26. *
  27. * @param message the message to be carried with the exception.
  28. */
  29. public DataLengthException(
  30. string message)
  31. : base(message)
  32. {
  33. }
  34. public DataLengthException(
  35. string message,
  36. Exception exception)
  37. : base(message, exception)
  38. {
  39. }
  40. }
  41. }
  42. #pragma warning restore
  43. #endif