ResponseType - The type for the Lambda return value. Implementing sub-classes are required to return a valid
instance of the response type.public interface ExceptionHandler<ResponseType>
handle method for requests that are being proxied using a
request and response type LambdaContainerHandler, and a stream-based
handle method for
Lambda's RequestStreamHandler.LambdaContainerHandler| Modifier and Type | Method and Description |
|---|---|
ResponseType |
handle(Throwable ex)
The handle method is called by the container object whenever an exception occurs in the
proxy method
for typed calls |
void |
handle(Throwable ex,
OutputStream stream)
This handle implementation is called whenever an exception occurs in the stream-based
proxy method. |
ResponseType handle(Throwable ex)
proxy method
for typed callsex - The exception thrown by the applicationvoid handle(Throwable ex, OutputStream stream) throws IOException
proxy method.ex - The exception thrown by the applicationstream - The OutputStream where the exception will be writtenIOException - When the exception handler fails to write to the OutputStreamCopyright © 2017. All Rights Reserved.