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(java.lang.Throwable ex)
The handle method is called by the container object whenever an exception occurs in the
proxy method
for typed calls |
void |
handle(java.lang.Throwable ex,
java.io.OutputStream stream)
This handle implementation is called whenever an exception occurs in the stream-based
proxy method. |
ResponseType handle(java.lang.Throwable ex)
proxy method
for typed callsex - The exception thrown by the applicationvoid handle(java.lang.Throwable ex,
java.io.OutputStream stream)
throws java.io.IOException
proxy method.ex - The exception thrown by the applicationstream - The OutputStream where the exception will be writtenjava.io.IOException - When the exception handler fails to write to the OutputStreamCopyright © 2018. All Rights Reserved.