MaxBytesExceededException.cs 860 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using System.Runtime.Serialization;
  5. namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Crypto
  6. {
  7. /// <summary>This exception is thrown whenever a cipher requires a change of key, IV or similar after x amount of
  8. /// bytes enciphered.
  9. /// </summary>
  10. [Serializable]
  11. public class MaxBytesExceededException
  12. : CryptoException
  13. {
  14. public MaxBytesExceededException()
  15. : base()
  16. {
  17. }
  18. public MaxBytesExceededException(string message)
  19. : base(message)
  20. {
  21. }
  22. public MaxBytesExceededException(string message, Exception innerException)
  23. : base(message, innerException)
  24. {
  25. }
  26. protected MaxBytesExceededException(SerializationInfo info, StreamingContext context)
  27. : base(info, context)
  28. {
  29. }
  30. }
  31. }
  32. #pragma warning restore
  33. #endif