public static final class InterceptorInvocationResult.Failed extends InterceptorInvocationResult
Modifier and Type | Class and Description |
---|---|
static class |
InterceptorInvocationResult.Failed.Reason
Interceptor invocation failure reasons.
|
InterceptorInvocationResult.Completed, InterceptorInvocationResult.Failed, InterceptorInvocationResult.InProgress, InterceptorInvocationResult.Outcome
Constructor and Description |
---|
InterceptorInvocationResult.Failed(InterceptorInvocationResult.Failed.Reason reason,
String cause)
Create a new interceptor invocation failed result.
|
Modifier and Type | Method and Description |
---|---|
String |
getCause()
Get the cause description for the failure.
|
InterceptorInvocationResult.Failed.Reason |
getReason()
Get the reason why the interceptor invocation failed.
|
String |
toString() |
getOutcome
public InterceptorInvocationResult.Failed(InterceptorInvocationResult.Failed.Reason reason, String cause)
reason
- the reason the invocation failed.cause
- a string description giving more information why the invocation failed.public InterceptorInvocationResult.Failed.Reason getReason()
public String getCause()