Class 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.String errorBody  
      protected java.lang.String exceptionClassName
      Deprecated.
      on Nuxeo server since LTS 2017 - 9.10
      protected int status  
    • 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.String getErrorBody()  
      java.lang.String getExceptionClassName()
      Deprecated.
      on Nuxeo server since LTS 2017 - 9.10
      int getStatus()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • exceptionClassName

        @Deprecated
        protected final java.lang.String exceptionClassName
        Deprecated.
        on Nuxeo server since LTS 2017 - 9.10
        This field represents the JSON property code which 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:
        toString in class java.lang.Throwable