Class ClientServerException

    • Constructor Summary

      Constructors 
      Constructor Description
      ClientServerException​(int statusCode, java.lang.String statusMessage, sherpa.partner.api.common.ErrorResponse error)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      sherpa.partner.api.common.ErrorResponse getError()
      Get the error returned by the server
      int getStatusCode()
      Get the HTTP status code
      java.lang.String getStatusMessage()
      Get the HTTP status message
      • Methods inherited from class java.lang.Throwable

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

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

      • ClientServerException

        public ClientServerException​(int statusCode,
                                     java.lang.String statusMessage,
                                     sherpa.partner.api.common.ErrorResponse error)
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Get the HTTP status code
        Returns:
        the status code
      • getStatusMessage

        public java.lang.String getStatusMessage()
        Get the HTTP status message
        Returns:
        the status message
      • getError

        public sherpa.partner.api.common.ErrorResponse getError()
        Get the error returned by the server
        Returns:
        the list of errors