- All Implemented Interfaces:
- io.micronaut.http.server.exceptions.ExceptionHandler<com.amazon.ask.exception.AskSdkException,io.micronaut.http.HttpResponse>
@Produces
@Singleton
@Requires(classes=com.amazon.ask.exception.AskSdkException.class)
public class AskSdkExceptionHandler
extends java.lang.Object
implements io.micronaut.http.server.exceptions.ExceptionHandler<com.amazon.ask.exception.AskSdkException,io.micronaut.http.HttpResponse>
ExceptionHandler
to handle AskSdkException
. It returns a 500 response with the exception message wrapped in a JsonError
.
- Since:
- 2.0.0
- Author:
- sdelamo