onProcessFailed

public abstract void onProcessFailed(int exitValue, @Nullable() @Nullable() Throwable throwable)

Called when a managed process terminates abnormally or encounters an error.

Parameters

exitValue

the exit code returned by the process (non-zero indicates failure)

throwable

an optional exception describing the failure cause, or null if the failure reason is unknown