ManageEngine Analytics Plus API Docs

com.adventnet.zoho.client.report
Class ServerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.adventnet.zoho.client.report.ServerException
All Implemented Interfaces:
java.io.Serializable

public class ServerException
extends java.lang.Exception

ServerException is thrown if the report server has recieved the request but did not process the request due to some error. For example if authorization fails.

See Also:
Serialized Form

Method Summary
 java.lang.String getAction()
          The action to be performed over the resource specified by the uri
 int getErrorCode()
          Returns the error code sent by the server.
 int getHttpStatusCode()
          The http status code for the request.
 java.lang.String getMessage()
          Returns the message sent by the server.
 java.lang.String getRequestURI()
          The uri which threw this exception.
 java.lang.String toString()
          Returns the entire error details sent by the server.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getHttpStatusCode

public int getHttpStatusCode()
The http status code for the request.

Returns:
An int value.

getRequestURI

public java.lang.String getRequestURI()
The uri which threw this exception.

Returns:
A String value.

getAction

public java.lang.String getAction()
The action to be performed over the resource specified by the uri

Returns:
A String value

getErrorCode

public int getErrorCode()
Returns the error code sent by the server.

Returns:
A int value.

getMessage

public java.lang.String getMessage()
Returns the message sent by the server.

Overrides:
getMessage in class java.lang.Throwable
Returns:
A String value.

toString

public java.lang.String toString()
Returns the entire error details sent by the server.

Overrides:
toString in class java.lang.Throwable
Returns:
A String value.

ManageEngine Analytics Plus API Docs

Copyright © 2018 AdventNet Inc. All Rights Reserved.