MigratoryDataException
Define the error codes of the API, and their corresponding error texts and error causes.
Public Functions
Name | |
---|---|
int | getCode() Get the error code. |
String | getCause() Get the error cause. |
String | getDetail() Get the error text. |
Public Attributes
Name | |
---|---|
int | E_INVALID_URL Indicate an invalid address for a MigratoryData server. |
int | E_NOT_SET Indicate that the client isn’t initialized with all the information necessary to run. |
int | E_ILLEGAL_ARGUMENT Indicate that the argument supplied to the method is invalid. |
int | E_RUNNING Indicate that the client is already connected to a MigratoryData cluster and the action wanted is not allowed when in this state. |
int | E_NOT_CONNECTED Indicate that the client is not connected to a MigratoryData cluster and the action wanted is not allowed when in this state. |
Public Functions Documentation
function getCode
int getCode()
Get the error code.
Return: The error code.
function getCause
String getCause()
Get the error cause.
Return: The error cause.
function getDetail
String getDetail()
Get the error text.
Return: The error text.
Public Attributes Documentation
variable E_INVALID_URL
int E_INVALID_URL = 1;
Indicate an invalid address for a MigratoryData server.
The address of a MigratoryData server is incorrectly specified.
variable E_RUNNING
int E_RUNNING = 2;
Indicate that the client is already connect to a MigratoryData cluster and the action wanted is not allowed when in this state.
variable E_NOT_CONNECTED
int E_NOT_CONNECTED = 3;
Indicate that the client is not connect to a MigratoryData cluster and the action wanted is not allowed when in this state.
You need to use MigratoryDataClient.connect() .
variable E_ILLEGAL_ARGUMENT
int E_ILLEGAL_ARGUMENT = 4;
Indicate that the argument supplied to the method is invalid.
The corresponding error cause contains additional info.
variable E_NOT_SET
int E_NOT_SET = 5;
Indicate that the client isn’t initialized with all the information necessary to run.
The corresponding error cause contains additional info about the error (missing eventLoop, missing listener, missing servers list, etc).