MaxBytesExceededException.cs 691 B

123456789101112131415161718192021222324252627282930313233343536
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. namespace Org.BouncyCastle.Crypto
  4. {
  5. /// <summary>
  6. /// This exception is thrown whenever a cipher requires a change of key, iv
  7. /// or similar after x amount of bytes enciphered
  8. /// </summary>
  9. #if !(NETCF_1_0 || NETCF_2_0 || SILVERLIGHT || NETFX_CORE || PORTABLE)
  10. [Serializable]
  11. #endif
  12. public class MaxBytesExceededException
  13. : CryptoException
  14. {
  15. public MaxBytesExceededException()
  16. {
  17. }
  18. public MaxBytesExceededException(
  19. string message)
  20. : base(message)
  21. {
  22. }
  23. public MaxBytesExceededException(
  24. string message,
  25. Exception e)
  26. : base(message, e)
  27. {
  28. }
  29. }
  30. }
  31. #endif