Package com.zoho.analytics.client
Class ServerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.zoho.analytics.client.ServerException
-
- All Implemented Interfaces:
java.io.Serializable
public class ServerException extends java.lang.ExceptionServerException 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:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServerException(int httpStatusCode, int errorCode, java.lang.String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Returns the error code sent by the server.java.lang.StringgetErrorMessage()Returns the error message sent by the server.intgetHttpStatusCode()The http status code for the request.java.lang.StringtoString()Returns the entire error details sent by the server.
-
-
-
Method Detail
-
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
public java.lang.String getErrorMessage()
Returns the error message sent by the server.- Returns:
- A
Stringvalue.
-
toString
public java.lang.String toString()
Returns the entire error details sent by the server.- Overrides:
toStringin classjava.lang.Throwable- Returns:
- A
Stringvalue.
-
-