MaxBytesExceededException.cs 758 B

123456789101112131415161718192021222324252627282930313233343536
  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. /// <summary>
  7. /// This exception is thrown whenever a cipher requires a change of key, iv
  8. /// or similar after x amount of bytes enciphered
  9. /// </summary>
  10. #if !(NETCF_1_0 || NETCF_2_0 || SILVERLIGHT || PORTABLE || NETFX_CORE)
  11. [Serializable]
  12. #endif
  13. public class MaxBytesExceededException
  14. : CryptoException
  15. {
  16. public MaxBytesExceededException()
  17. {
  18. }
  19. public MaxBytesExceededException(
  20. string message)
  21. : base(message)
  22. {
  23. }
  24. public MaxBytesExceededException(
  25. string message,
  26. Exception e)
  27. : base(message, e)
  28. {
  29. }
  30. }
  31. }
  32. #pragma warning restore
  33. #endif