Package org.nuxeo.client.spi
Class NuxeoClientRemoteException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.nuxeo.client.spi.NuxeoClientException
-
- org.nuxeo.client.spi.NuxeoClientRemoteException
-
- All Implemented Interfaces:
java.io.Serializable
public class NuxeoClientRemoteException extends NuxeoClientException
Exception thrown by the client when a HTTP error occurred.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringerrorBodyprotected java.lang.StringexceptionClassNameDeprecated.on Nuxeo server since LTS 2017 - 9.10protected intstatus
-
Constructor Summary
Constructors Constructor Description NuxeoClientRemoteException(int status, java.lang.String message, java.lang.String errorBody, java.lang.Throwable cause)Constructor to instantiate a remote errorBody with a HTTP status code, message, a stacktrace and an error body.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetErrorBody()java.lang.StringgetExceptionClassName()Deprecated.on Nuxeo server since LTS 2017 - 9.10intgetStatus()java.lang.StringtoString()
-
-
-
Field Detail
-
exceptionClassName
@Deprecated protected final java.lang.String exceptionClassName
Deprecated.on Nuxeo server since LTS 2017 - 9.10This field represents the JSON propertycodewhich is the exception class name happened on server. Since Nuxeo LTS 2017 - 9.10, this property is absent from error response. Needed exception/error information are now status code and message.
-
status
protected final int status
-
errorBody
protected final java.lang.String errorBody
-
-
Constructor Detail
-
NuxeoClientRemoteException
public NuxeoClientRemoteException(int status, java.lang.String message, java.lang.String errorBody, java.lang.Throwable cause)Constructor to instantiate a remote errorBody with a HTTP status code, message, a stacktrace and an error body. Response form server always define stacktrace and exception or none of them
-
-
Method Detail
-
getExceptionClassName
@Deprecated public java.lang.String getExceptionClassName()
Deprecated.on Nuxeo server since LTS 2017 - 9.10- See Also:
exceptionClassName
-
getStatus
public int getStatus()
-
getErrorBody
public java.lang.String getErrorBody()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-