MemoableResetException.cs 736 B

12345678910111213141516171819202122232425262728293031
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. namespace Org.BouncyCastle.Utilities
  4. {
  5. /**
  6. * Exception to be thrown on a failure to reset an object implementing Memoable.
  7. * <p>
  8. * The exception extends InvalidCastException to enable users to have a single handling case,
  9. * only introducing specific handling of this one if required.
  10. * </p>
  11. */
  12. public class MemoableResetException
  13. : InvalidCastException
  14. {
  15. /**
  16. * Basic Constructor.
  17. *
  18. * @param msg message to be associated with this exception.
  19. */
  20. public MemoableResetException(string msg)
  21. : base(msg)
  22. {
  23. }
  24. }
  25. }
  26. #endif