Package org.nuxeo.ecm.webengine
Class WebException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.ws.rs.WebApplicationException
-
- org.nuxeo.ecm.webengine.WebException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TypeException
@Deprecated public class WebException extends javax.ws.rs.WebApplicationException
Deprecated.since 9.3. UseNuxeoException
instead.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description WebException()
Deprecated.WebException(int status)
Deprecated.WebException(String message)
Deprecated.WebException(String message, int code)
Deprecated.WebException(String message, Throwable cause)
Deprecated.WebException(String message, Throwable cause, int status)
Deprecated.protected
WebException(Throwable cause)
Deprecated.protected
WebException(Throwable cause, int status)
Deprecated.protected
WebException(Throwable cause, javax.ws.rs.core.Response.Status status)
Deprecated.Use WebException.wrap() and not the constructor.WebException(javax.ws.rs.core.Response response)
Deprecated.WebException(javax.ws.rs.core.Response.Status status)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Throwable
getCause()
Deprecated.String
getHelpUrl()
Deprecated.String
getMessage()
Deprecated.String
getRequestId()
Deprecated.int
getReturnCode()
Deprecated.String
getStackTraceString()
Deprecated.int
getStatus()
Deprecated.static int
getStatus(Throwable cause)
Deprecated.Tries to find the best matching HTTP status for the given exception.static int
getStatus(Throwable cause, int depth)
Deprecated.int
getStatusCode()
Deprecated.String
getType()
Deprecated.static Object
handleError(javax.ws.rs.WebApplicationException e)
Deprecated.static boolean
isSecurityError(Throwable t)
Deprecated.static WebException
newException(String message, Throwable cause)
Deprecated.static WebException
newException(String message, Throwable cause, int status)
Deprecated.static WebException
newException(Throwable cause)
Deprecated.void
setStatus(int status)
Deprecated.javax.ws.rs.core.Response
toResponse()
Deprecated.Handle if needed custom error webengine module handler.static javax.ws.rs.core.Response
toResponse(Throwable t)
Deprecated.static String
toString(Throwable t)
Deprecated.protected javax.ws.rs.core.Response
toWebModuleResponse(WebContext ctx)
Deprecated.Ask Webengine module for custom error handling and response.static WebException
wrap(String message, Throwable exception)
Deprecated.static WebException
wrap(Throwable e)
Deprecated.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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.
-
-
Method Detail
-
newException
public static WebException newException(String message, Throwable cause)
Deprecated.
-
newException
public static WebException newException(Throwable cause)
Deprecated.
-
newException
public static WebException newException(String message, Throwable cause, int status)
Deprecated.
-
wrap
public static WebException wrap(Throwable e)
Deprecated.
-
wrap
public static WebException wrap(String message, Throwable exception)
Deprecated.
-
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.
-
getMessage
public String getMessage()
Deprecated.- Overrides:
getMessage
in classThrowable
-
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.
-
-