DataLengthException.cs 986 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 if a buffer that is meant to have output copied into it turns out to be too
  8. /// short, or if we've been given insufficient input.</summary>
  9. /// <remarks>
  10. /// In general this exception will get thrown rather than an <see cref="IndexOutOfRangeException"/>.
  11. /// </remarks>
  12. [Serializable]
  13. public class DataLengthException
  14. : CryptoException
  15. {
  16. public DataLengthException()
  17. : base()
  18. {
  19. }
  20. public DataLengthException(string message)
  21. : base(message)
  22. {
  23. }
  24. public DataLengthException(string message, Exception innerException)
  25. : base(message, innerException)
  26. {
  27. }
  28. protected DataLengthException(SerializationInfo info, StreamingContext context)
  29. : base(info, context)
  30. {
  31. }
  32. }
  33. }
  34. #pragma warning restore
  35. #endif