Package com.zoho.analytics.client
Class ServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.zoho.analytics.client.ServerException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsModifierConstructorDescriptionprotectedServerException(int httpStatusCode, int errorCode, String message) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the error code sent by the server.Returns the error message sent by the server.intThe http status code for the request.toString()Returns the entire error details sent by the server.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ServerException
-
-
Method Details
-
getHttpStatusCode
public int getHttpStatusCode()The http status code for the request.- Returns:
- An
intvalue.
-
getErrorCode
public int getErrorCode()Returns the error code sent by the server.- Returns:
- A
intvalue.
-
getErrorMessage
Returns the error message sent by the server.- Returns:
- A
Stringvalue.
-
toString
Returns the entire error details sent by the server.
-