Class ResultCheckerException

All Implemented Interfaces:
Serializable

public class ResultCheckerException extends IllegalArgumentException
Exception thrown by a ResultChecker when a requirement is violated.
See Also:
  • Constructor Details

    • ResultCheckerException

      public ResultCheckerException(ScriptResult result, String message)
      Constructor for exceptions that are not specific to a single snippet.
      Parameters:
      result - the result that generated this exception
      message - exception message, or null for none
    • ResultCheckerException

      public ResultCheckerException(ScriptResult result, String message, Throwable cause)
      Constructor for exceptions that are not specific to a single snippet.
      Parameters:
      result - the result that generated this exception
      message - exception message, or null for none
      cause - underlying cause, or null for none
    • ResultCheckerException

      public ResultCheckerException(ScriptResult result, int snippetIndex, String message)
      Constructor.
      Parameters:
      result - the result that generated this exception
      snippetIndex - offending snippet index, or -1 if not specific to a single snippet
      message - exception message, or null for none
    • ResultCheckerException

      public ResultCheckerException(ScriptResult result, int snippetIndex, String message, Throwable cause)
      Constructor.
      Parameters:
      result - the result that generated this exception
      snippetIndex - offending snippet index, or -1 if not specific to a single snippet
      message - exception message, or null for none
      cause - underlying cause, or null for none
  • Method Details

    • result

      public ScriptResult result()
      Get the ScriptResult which generated this exception.
      Returns:
      the result that generated this exception
    • snippetIndex

      public int snippetIndex()
      Get the index of the snippet that generated this exception.
      Returns:
      snippet index, or -1 if this error is not specific to a single snippet