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_SUBJECT
Indicate an invalid subject syntax.
int E_TRANSPORT_INIT_FAILED
Indicate a transport initialization failure.
int E_CONNECTION_FAILED
Indicate a connection failure.
int E_MSG_NULL
Indicate that the message supplied for delivery is null.
int E_MSG_INVALID
Indicate that the message supplied for delivery is invalid.
int E_CLUSTER_MEMBERS_CONNECTION_FAILED
Indicate that the client failed to connect to all MigratoryData servers in the cluster.
int E_INVALID_URL_LIST
Indicate an invalid list of MigratoryData servers.
int E_INVALID_URL
Indicate an invalid address for a MigratoryData server.
int E_INVALID_PROTOCOL
Indicate an internal error during communication with a MigratoryData server.
int E_ENTITLEMENT_TOKEN
Indicate that the entitlement token was not supplied.
int E_RUNNING
Indicate that the client is already connect 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 connect 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_SUBJECT

int E_INVALID_SUBJECT = 1;

Indicate an invalid subject syntax.

This error code indicates that the subject used to build a new message has an invalid syntax.

The corresponding error cause contains the invalid subject itself.

variable E_TRANSPORT_INIT_FAILED

int E_TRANSPORT_INIT_FAILED = 2;

Indicate a transport initialization failure.

This error code indicates that the client was not able to establish the transport connection to a MigratoryData server.

The corresponding error cause contains the address of the MigratoryData server to which the client failed to establish the trasport connection.

variable E_CONNECTION_FAILED

int E_CONNECTION_FAILED = 3;

Indicate a connection failure.

This error code indicates that the client was not able to connect to a MigratoryData server.

The corresponding error cause contains the address of the MigratoryData server to which the client failed to connect.

variable E_MSG_NULL

int E_MSG_NULL = 4;

Indicate that the message supplied for delivery is null.

The message supplied for delivery is null

variable E_MSG_INVALID

int E_MSG_INVALID = 5;

Indicate that the message supplied for delivery is invalid.

The message supplied for delivery is invalid.

variable E_CLUSTER_MEMBERS_CONNECTION_FAILED

int E_CLUSTER_MEMBERS_CONNECTION_FAILED = 7;

Indicate that the client failed to connect to all MigratoryData servers in the cluster.

The client failed to connect to all MigratoryData servers in the cluster.

variable E_INVALID_URL_LIST

int E_INVALID_URL_LIST = 8;

Indicate an invalid list of MigratoryData servers.

The list of MigratoryData servers is incorrectly specified.

variable E_INVALID_URL

int E_INVALID_URL = 9;

Indicate an invalid address for a MigratoryData server.

The address of a MigratoryData server is incorrectly specified.

variable E_INVALID_PROTOCOL

int E_INVALID_PROTOCOL = 10;

Indicate an internal error during communication with a MigratoryData server.

Internal communication error.

variable E_ENTITLEMENT_TOKEN

int E_ENTITLEMENT_TOKEN = 11;

Indicate that the entitlement token was not supplied.

Use the method MigratoryDataClient.setEntitlementToken() to define an entitement token.

variable E_RUNNING

int E_RUNNING = 12;

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 = 13;

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() .


Updated on 6 November 2020 at 13:20:01 EET