Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine
Class WebException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.ws.rs.WebApplicationException
                  extended by 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

Constructor Summary
WebException()
           
WebException(int status)
           
WebException(Response.Status status)
           
WebException(Response response)
           
WebException(String message)
           
WebException(String message, int code)
           
 
Method Summary
 String getMessage()
           
 Response getResponse()
           
 int getReturnCode()
          Deprecated. 
 String getStackTraceString()
           
 int getStatusCode()
           
static Object handleError(WebApplicationException e)
           
static Response toResponse(Throwable t)
           
static String toString(Throwable t)
           
static WebException wrap(String message, Throwable e)
           
static WebException wrap(Throwable e)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.