public class GlobalServiceExecutionInterceptor extends Object implements ExecutionInterceptor
Constructor and Description |
---|
GlobalServiceExecutionInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
onExecutionFailure(Context.FailedExecution context,
ExecutionAttributes executionAttributes)
Invoked when any error happens during an execution that prevents the request from succeeding.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterExecution, afterMarshalling, afterTransmission, afterUnmarshalling, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyHttpRequest, modifyHttpResponse, modifyRequest, modifyResponse
public void onExecutionFailure(Context.FailedExecution context, ExecutionAttributes executionAttributes)
ExecutionInterceptor
This will only be invoked if the entire execution fails. If a retriable error happens (according to the
RetryPolicy
) and a subsequent retry succeeds, this method will not be invoked.
onExecutionFailure
in interface ExecutionInterceptor
context
- The context associated with the execution that failed. An SDK request will always be available, but
depending on the time at which the failure happened, the HTTP request, HTTP response and SDK response may
not be available. This also includes the exception that triggered the failure.executionAttributes
- A mutable set of attributes scoped to one specific request/response cycle that can be used to
give data to future lifecycle methods.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.