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:
- IllegalParameterException, ThemeBankException, ThemeEditorException, TypeException, WebDeployException, WebDocumentException, WebResourceNotFoundException, WebSecurityException, WidgetEditorException
public class WebException
- extends WebApplicationException
- See Also:
- Serialized Form
WebException
public WebException()
WebException
public WebException(Response response)
WebException
public WebException(int status)
WebException
public WebException(Response.Status status)
WebException
public WebException(String message)
WebException
public WebException(String message,
int code)
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
getStatusCode
public int getStatusCode()
getReturnCode
@Deprecated
public int getReturnCode()
- Deprecated.
- For compatibility only.
getResponse
public Response getResponse()
- Overrides:
getResponse
in class WebApplicationException
getStackTraceString
public String getStackTraceString()
toString
public static String toString(Throwable t)
toResponse
public static Response toResponse(Throwable t)
wrap
public static WebException wrap(Throwable e)
wrap
public static WebException wrap(String message,
Throwable e)
handleError
public static Object handleError(WebApplicationException e)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.