Package org.verifyica.api
Class ShellScript.Result
java.lang.Object
org.verifyica.api.ShellScript.Result
- Enclosing class:
ShellScript
Result class to encapsulate the result of executing a shell script.
-
Method Summary
Modifier and TypeMethodDescriptionintMethod to get the exit code of the script execution.Method to get the throwable if an error occurred during execution.booleanMethod to return whether an error occurred during execution.
-
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
Method to get the throwable if an error occurred during execution.- Returns:
- the throwable, or null if no error occurred
-