public class StepFailedException extends Exception implements WrapsException, ExceptionWithContext
Modifier and Type | Field and Description |
---|---|
protected static int |
KEEP_FIRST_CHARS |
Modifier and Type | Method and Description |
---|---|
static StepFailedException |
createForFailingStepWithExitCode(Step step,
ExecutionContext context,
StepExecutionResult executionResult)
Creates a StepFailedException based on a StepExecutionResult.
|
static StepFailedException |
createForFailingStepWithExitCode(Step step,
ExecutionContext context,
StepExecutionResult executionResult,
com.facebook.buck.remoteexecution.proto.RemoteExecutionMetadata remoteExecutionMetadata)
Same as above but includes RE action metadata
|
Optional<String> |
getContext() |
OptionalInt |
getExitCode() |
String |
getMessage() |
Optional<com.facebook.buck.remoteexecution.proto.RemoteExecutionMetadata> |
getRemoteExecutionMetadata() |
Step |
getStep() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRootCause
protected static final int KEEP_FIRST_CHARS
public String getMessage()
getMessage
in class Throwable
public static StepFailedException createForFailingStepWithExitCode(Step step, ExecutionContext context, StepExecutionResult executionResult)
public static StepFailedException createForFailingStepWithExitCode(Step step, ExecutionContext context, StepExecutionResult executionResult, com.facebook.buck.remoteexecution.proto.RemoteExecutionMetadata remoteExecutionMetadata)
public Step getStep()
public OptionalInt getExitCode()
public Optional<com.facebook.buck.remoteexecution.proto.RemoteExecutionMetadata> getRemoteExecutionMetadata()
public Optional<String> getContext()
getContext
in interface ExceptionWithContext