Nuxeo Enterprise Platform 5.4

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:
java.io.Serializable
Direct Known Subclasses:
IllegalParameterException, ThemeBankException, ThemeEditorException, TypeException, WebDeployException, WebDocumentException, WebResourceNotFoundException, WebSecurityException, WidgetEditorException

public class WebException
extends javax.ws.rs.WebApplicationException

See Also:
Serialized Form

Constructor Summary
WebException()
           
WebException(int status)
           
WebException(javax.ws.rs.core.Response.Status status)
           
WebException(javax.ws.rs.core.Response response)
           
WebException(java.lang.String message)
           
WebException(java.lang.String message, int code)
           
 
Method Summary
 java.lang.String getMessage()
           
 javax.ws.rs.core.Response getResponse()
           
 int getReturnCode()
          Deprecated. 
 java.lang.String getStackTraceString()
           
 int getStatusCode()
           
static java.lang.Object handleError(javax.ws.rs.WebApplicationException e)
           
static javax.ws.rs.core.Response toResponse(java.lang.Throwable t)
           
static java.lang.String toString(java.lang.Throwable t)
           
static WebException wrap(java.lang.String message, java.lang.Throwable e)
           
static WebException wrap(java.lang.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(javax.ws.rs.core.Response response)

WebException

public WebException(int status)

WebException

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

WebException

public WebException(java.lang.String message)

WebException

public WebException(java.lang.String message,
                    int code)
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getStatusCode

public int getStatusCode()

getReturnCode

@Deprecated
public int getReturnCode()
Deprecated. 

For compatibility only.


getResponse

public javax.ws.rs.core.Response getResponse()
Overrides:
getResponse in class javax.ws.rs.WebApplicationException

getStackTraceString

public java.lang.String getStackTraceString()

toString

public static java.lang.String toString(java.lang.Throwable t)

toResponse

public static javax.ws.rs.core.Response toResponse(java.lang.Throwable t)

wrap

public static WebException wrap(java.lang.Throwable e)

wrap

public static WebException wrap(java.lang.String message,
                                java.lang.Throwable e)

handleError

public static java.lang.Object handleError(javax.ws.rs.WebApplicationException e)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.