Class WebException

    • Field Detail

      • log

        protected static final Log log
        Deprecated.
      • type

        protected String type
        Deprecated.
      • cause

        protected Throwable cause
        Deprecated.
      • message

        protected String message
        Deprecated.
      • status

        protected int status
        Deprecated.
    • Constructor Detail

      • WebException

        public WebException()
        Deprecated.
      • WebException

        public WebException​(javax.ws.rs.core.Response response)
        Deprecated.
      • WebException

        public WebException​(int status)
        Deprecated.
      • WebException

        public WebException​(javax.ws.rs.core.Response.Status status)
        Deprecated.
      • WebException

        protected WebException​(Throwable cause,
                               javax.ws.rs.core.Response.Status status)
        Deprecated.
        Use WebException.wrap() and not the constructor.
      • WebException

        protected WebException​(Throwable cause,
                               int status)
        Deprecated.
      • WebException

        protected WebException​(Throwable cause)
        Deprecated.
      • WebException

        public WebException​(String message)
        Deprecated.
      • WebException

        public WebException​(String message,
                            int code)
        Deprecated.
      • WebException

        public WebException​(String message,
                            Throwable cause,
                            int status)
        Deprecated.
      • WebException

        public WebException​(String message,
                            Throwable cause)
        Deprecated.
    • Method Detail

      • handleError

        public static Object handleError​(javax.ws.rs.WebApplicationException e)
        Deprecated.
      • getStatus

        public static int getStatus​(Throwable cause)
        Deprecated.
        Tries to find the best matching HTTP status for the given exception.
      • getStatus

        public static int getStatus​(Throwable cause,
                                    int depth)
        Deprecated.
      • isSecurityError

        public static boolean isSecurityError​(Throwable t)
        Deprecated.
      • toResponse

        @Deprecated
        public static javax.ws.rs.core.Response toResponse​(Throwable t)
        Deprecated.
        For compatibility only.
      • getStatusCode

        public int getStatusCode()
        Deprecated.
      • getStackTraceString

        public String getStackTraceString()
        Deprecated.
      • getReturnCode

        @Deprecated
        public int getReturnCode()
        Deprecated.
        For compatibility only.
      • toResponse

        public javax.ws.rs.core.Response toResponse()
        Deprecated.
        Handle if needed custom error webengine module handler.
      • toWebModuleResponse

        protected javax.ws.rs.core.Response toWebModuleResponse​(WebContext ctx)
        Deprecated.
        Ask Webengine module for custom error handling and response.
      • getStatus

        public int getStatus()
        Deprecated.
      • setStatus

        public void setStatus​(int status)
        Deprecated.
      • getType

        public String getType()
        Deprecated.
      • getRequestId

        public String getRequestId()
        Deprecated.
      • getHelpUrl

        public String getHelpUrl()
        Deprecated.