Class 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 Detail

      • ExceptionUtil

        public ExceptionUtil()
    • 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