Class ExceptionUtil
- java.lang.Object
-
- com.networknt.aws.lambda.handler.middleware.ExceptionUtil
-
public class ExceptionUtil extends Object
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 Constructor Description ExceptionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEventconvert(List<com.networknt.status.Status> middlewareResults)Convert the middleware results to APIGatewayProxyResponseEvent
-
-
-
Method Detail
-
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
-
-