Thrower.cs 508 B

123456789101112131415161718192021222324
  1. namespace Jint.Tests.Runtime.Domain;
  2. public class Thrower
  3. {
  4. public void ThrowArgumentNullException()
  5. {
  6. throw new ArgumentNullException();
  7. }
  8. public void ThrowExceptionWithMessage(string message)
  9. {
  10. throw new Exception(message);
  11. }
  12. public void ThrowNotSupportedException()
  13. {
  14. throw new NotSupportedException();
  15. }
  16. public void ThrowNotSupportedExceptionWithMessage(string message)
  17. {
  18. throw new NotSupportedException(message);
  19. }
  20. }