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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent
    convert(List<com.networknt.status.Status> middlewareResults)
    Convert the middleware results to APIGatewayProxyResponseEvent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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