com.incesoft.botplatform.sdk
Class RobotException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.incesoft.botplatform.sdk.RobotException
All Implemented Interfaces:
java.io.Serializable

public class RobotException
extends java.lang.Exception

Thrown when a robot server or your request encounters an error.

Author:
LiBo
See Also:
Serialized Form

Field Summary
static int ERROR_ACCOUNT_NOT_BOUND
           
static int ERROR_CALL_TOO_FREQUENTLY
           
static int ERROR_CREATE_SESSION_FAILED
           
static int ERROR_DATA_LENGTH_LIMITED
           
static int ERROR_EXCEED_CONNECTION_LIMIT
           
static int ERROR_INVALID_SPID
           
static int ERROR_INVITE_USER_FAILED
           
static int ERROR_LOCAL
           
static int ERROR_NO_IDLE_SERVER
           
static int ERROR_PRIVILEGE_LIMITED
           
static int ERROR_PROVISION_ACCOUNT_DOESNOT_SUPPORT
           
static int ERROR_REQUEST_TOO_FREQUENTLY
           
static int ERROR_RESOURCE_NOT_FOUND
           
static int ERROR_SERVER_ERROR
           
 
Constructor Summary
RobotException()
           
RobotException(int code, java.lang.String message)
           
RobotException(java.lang.String message)
           
RobotException(java.lang.String message, java.lang.Throwable cause)
           
RobotException(java.lang.Throwable cause)
           
 
Method Summary
 int getErrorCode()
           
 void setErrorCode(int errorCode)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_LOCAL

public static final int ERROR_LOCAL
See Also:
Constant Field Values

ERROR_EXCEED_CONNECTION_LIMIT

public static final int ERROR_EXCEED_CONNECTION_LIMIT
See Also:
Constant Field Values

ERROR_INVALID_SPID

public static final int ERROR_INVALID_SPID
See Also:
Constant Field Values

ERROR_SERVER_ERROR

public static final int ERROR_SERVER_ERROR
See Also:
Constant Field Values

ERROR_ACCOUNT_NOT_BOUND

public static final int ERROR_ACCOUNT_NOT_BOUND
See Also:
Constant Field Values

ERROR_REQUEST_TOO_FREQUENTLY

public static final int ERROR_REQUEST_TOO_FREQUENTLY
See Also:
Constant Field Values

ERROR_NO_IDLE_SERVER

public static final int ERROR_NO_IDLE_SERVER
See Also:
Constant Field Values

ERROR_RESOURCE_NOT_FOUND

public static final int ERROR_RESOURCE_NOT_FOUND
See Also:
Constant Field Values

ERROR_PRIVILEGE_LIMITED

public static final int ERROR_PRIVILEGE_LIMITED
See Also:
Constant Field Values

ERROR_INVITE_USER_FAILED

public static final int ERROR_INVITE_USER_FAILED
See Also:
Constant Field Values

ERROR_CREATE_SESSION_FAILED

public static final int ERROR_CREATE_SESSION_FAILED
See Also:
Constant Field Values

ERROR_CALL_TOO_FREQUENTLY

public static final int ERROR_CALL_TOO_FREQUENTLY
See Also:
Constant Field Values

ERROR_PROVISION_ACCOUNT_DOESNOT_SUPPORT

public static final int ERROR_PROVISION_ACCOUNT_DOESNOT_SUPPORT
See Also:
Constant Field Values

ERROR_DATA_LENGTH_LIMITED

public static final int ERROR_DATA_LENGTH_LIMITED
See Also:
Constant Field Values
Constructor Detail

RobotException

public RobotException()

RobotException

public RobotException(java.lang.String message)

RobotException

public RobotException(int code,
                      java.lang.String message)

RobotException

public RobotException(java.lang.String message,
                      java.lang.Throwable cause)

RobotException

public RobotException(java.lang.Throwable cause)
Method Detail

getErrorCode

public int getErrorCode()

setErrorCode

public void setErrorCode(int errorCode)