MemoableResetException.cs 989 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.Utilities
  6. {
  7. /**
  8. * Exception to be thrown on a failure to reset an object implementing Memoable.
  9. * <p>
  10. * The exception extends InvalidCastException to enable users to have a single handling case,
  11. * only introducing specific handling of this one if required.
  12. * </p>
  13. */
  14. [Serializable]
  15. public class MemoableResetException
  16. : InvalidCastException
  17. {
  18. public MemoableResetException()
  19. : base()
  20. {
  21. }
  22. public MemoableResetException(string message)
  23. : base(message)
  24. {
  25. }
  26. public MemoableResetException(string message, Exception innerException)
  27. : base(message, innerException)
  28. {
  29. }
  30. protected MemoableResetException(SerializationInfo info, StreamingContext context)
  31. : base(info, context)
  32. {
  33. }
  34. }
  35. }
  36. #pragma warning restore
  37. #endif