Class ServerException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.zoho.analytics.client.ServerException
All Implemented Interfaces:
Serializable

public class ServerException extends Exception
ServerException is thrown if the analytics server has received the request but did not process the request due to some error. For example if authorization fails.
See Also:
  • Constructor Details

    • ServerException

      protected ServerException(int httpStatusCode, int errorCode, String message)
  • Method Details

    • getHttpStatusCode

      public int getHttpStatusCode()
      The http status code for the request.
      Returns:
      An int value.
    • getErrorCode

      public int getErrorCode()
      Returns the error code sent by the server.
      Returns:
      A int value.
    • getErrorMessage

      public String getErrorMessage()
      Returns the error message sent by the server.
      Returns:
      A String value.
    • toString

      public String toString()
      Returns the entire error details sent by the server.
      Overrides:
      toString in class Throwable
      Returns:
      A String value.