Class ExceptionUtil
java.lang.Object
com.networknt.aws.lambda.handler.middleware.ExceptionUtil
This class is used to handle exceptions and return the response to the client. It is called by
the LightLambdaExchange when returning response from the exchange.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExceptionUtil
public ExceptionUtil()
-
-
Method Details
-
convert
public static com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent convert(List<com.networknt.status.Status> middlewareResults) Convert the middleware results to APIGatewayProxyResponseEvent- Parameters:
middlewareResults- a list of middleware results- Returns:
- APIGatewayProxyResponseEvent
-