JintException.cs 628 B

123456789101112131415161718192021222324252627
  1. using System.Runtime.Serialization;
  2. namespace Jint.Runtime
  3. {
  4. /// <summary>
  5. /// Base class for exceptions thrown by Jint.
  6. /// </summary>
  7. [Serializable]
  8. public abstract class JintException : Exception
  9. {
  10. protected JintException()
  11. {
  12. }
  13. protected JintException(SerializationInfo info, StreamingContext context) : base(info, context)
  14. {
  15. }
  16. protected JintException(string? message) : base(message)
  17. {
  18. }
  19. protected JintException(string? message, Exception? innerException) : base(message, innerException)
  20. {
  21. }
  22. }
  23. }