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. UseNuxeoExceptioninstead.- 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.protectedWebException(Throwable cause)Deprecated.protectedWebException(Throwable cause, int status)Deprecated.protectedWebException(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 ThrowablegetCause()Deprecated.StringgetHelpUrl()Deprecated.StringgetMessage()Deprecated.StringgetRequestId()Deprecated.intgetReturnCode()Deprecated.StringgetStackTraceString()Deprecated.intgetStatus()Deprecated.static intgetStatus(Throwable cause)Deprecated.Tries to find the best matching HTTP status for the given exception.static intgetStatus(Throwable cause, int depth)Deprecated.intgetStatusCode()Deprecated.StringgetType()Deprecated.static ObjecthandleError(javax.ws.rs.WebApplicationException e)Deprecated.static booleanisSecurityError(Throwable t)Deprecated.static WebExceptionnewException(String message, Throwable cause)Deprecated.static WebExceptionnewException(String message, Throwable cause, int status)Deprecated.static WebExceptionnewException(Throwable cause)Deprecated.voidsetStatus(int status)Deprecated.javax.ws.rs.core.ResponsetoResponse()Deprecated.Handle if needed custom error webengine module handler.static javax.ws.rs.core.ResponsetoResponse(Throwable t)Deprecated.static StringtoString(Throwable t)Deprecated.protected javax.ws.rs.core.ResponsetoWebModuleResponse(WebContext ctx)Deprecated.Ask Webengine module for custom error handling and response.static WebExceptionwrap(String message, Throwable exception)Deprecated.static WebExceptionwrap(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:
getMessagein 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.
-
-