public class MicronautAwsProxyExceptionHandler
extends java.lang.Object
implements com.amazonaws.serverless.proxy.ExceptionHandler<com.amazonaws.serverless.proxy.model.AwsProxyResponse>
ExceptionHandler
implementation.Modifier | Constructor and Description |
---|---|
protected |
MicronautAwsProxyExceptionHandler(MicronautLambdaContainerContext environment)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getErrorJson(java.lang.String message)
Get the error JSON.
|
com.amazonaws.serverless.proxy.model.AwsProxyResponse |
handle(java.lang.Throwable ex) |
void |
handle(java.lang.Throwable ex,
java.io.OutputStream stream) |
protected MicronautAwsProxyExceptionHandler(MicronautLambdaContainerContext environment)
environment
- The environment.public com.amazonaws.serverless.proxy.model.AwsProxyResponse handle(java.lang.Throwable ex)
handle
in interface com.amazonaws.serverless.proxy.ExceptionHandler<com.amazonaws.serverless.proxy.model.AwsProxyResponse>
public void handle(java.lang.Throwable ex, java.io.OutputStream stream) throws java.io.IOException
handle
in interface com.amazonaws.serverless.proxy.ExceptionHandler<com.amazonaws.serverless.proxy.model.AwsProxyResponse>
java.io.IOException
protected java.lang.String getErrorJson(java.lang.String message)
message
- The message