Class ShellScript.Result

java.lang.Object
org.verifyica.api.ShellScript.Result
Enclosing class:
ShellScript

public static class ShellScript.Result extends Object
Result class to encapsulate the result of executing a shell script.
  • Method Details

    • getExitCode

      public int getExitCode()
      Method to get the exit code of the script execution.
      Returns:
      the exit code of the script execution
    • hasThrowable

      public boolean hasThrowable()
      Method to return whether an error occurred during execution.
      Returns:
      true if an error occurred, otherwise false
    • getThrowable

      public Throwable getThrowable()
      Method to get the throwable if an error occurred during execution.
      Returns:
      the throwable, or null if no error occurred