Package org.fiware.mintaka.exception
Class GeneralExceptionHandler
java.lang.Object
org.fiware.mintaka.exception.GeneralExceptionHandler
- All Implemented Interfaces:
io.micronaut.http.server.exceptions.ExceptionHandler<Exception,
io.micronaut.http.HttpResponse<ProblemDetails>>
@Produces
@Singleton
@Requires(classes={java.lang.Exception.class,io.micronaut.http.server.exceptions.ExceptionHandler.class})
public class GeneralExceptionHandler
extends Object
implements io.micronaut.http.server.exceptions.ExceptionHandler<Exception,io.micronaut.http.HttpResponse<ProblemDetails>>
Handler to catch all not specifically(unexpected) handled exceptions and map them NGSI compliant.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GeneralExceptionHandler
public GeneralExceptionHandler()
-
-
Method Details
-
handle
public io.micronaut.http.HttpResponse<ProblemDetails> handle(io.micronaut.http.HttpRequest request, Exception exception) - Specified by:
handle
in interfaceio.micronaut.http.server.exceptions.ExceptionHandler<Exception,
io.micronaut.http.HttpResponse<ProblemDetails>>
-