Class ExceptionMapperUtils


  • public class ExceptionMapperUtils
    extends Object
    • Constructor Detail

      • ExceptionMapperUtils

        public ExceptionMapperUtils()
    • Method Detail

      • getResponse

        public static jakarta.ws.rs.core.Response getResponse​(Exception ex,
                                                              jakarta.ws.rs.core.Response.Status responseStatus,
                                                              jakarta.inject.Provider<jakarta.servlet.http.HttpServletRequest> request)
        getResponse.
        Parameters:
        ex - ex
        responseStatus - responseStatus
        Returns:
        getResponse
      • getResponse

        public static jakarta.ws.rs.core.Response getResponse​(AuthorizationException ex,
                                                              jakarta.inject.Provider<jakarta.servlet.http.HttpServletRequest> request)
        getResponse.
        Parameters:
        ex - ex
        request - request
        Returns:
        getResponse
      • getResponse

        public static jakarta.ws.rs.core.Response getResponse​(Exception ex,
                                                              jakarta.inject.Provider<jakarta.servlet.http.HttpServletRequest> request)
        getResponse.
        Parameters:
        ex - ex
        Returns:
        getResponse