Class ResponseUtils

    • Method Detail

      • getErrorInfo

        public static int getErrorInfo(Throwable ex,
                                       NamedList info,
                                       Logger log)
        Adds the given Throwable's message to the given NamedList.

        If the response code is not a regular code, the Throwable's stack trace is both logged and added to the given NamedList.

        Status codes less than 100 are adjusted to be 500.