Thrower.cs 602 B

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