SCCT.JavaSubscriber
Class SCCT_ErrorPackage

java.lang.Object
  extended by SCCT.JavaSubscriber.SCCT_AbstractPackage
      extended by SCCT.JavaSubscriber.SCCT_ErrorPackage

public class SCCT_ErrorPackage
extends SCCT_AbstractPackage

It contains the description of an error that has occurred such for as the loss of connection.


Field Summary
static int ERROR_DESTINATION_UNREACHABLE
          This error is thrown if SCCT is not able to establish a connection with the publisher.
static int ERROR_EXPIRED_TIMEOUT
          This error is thrown if timeout is expired.
static int ERROR_LOST_CONNECTION
          This error is thrown if SCCT notices that the connection is lost before the timeout expired.
static int ERROR_TRANSMISSION_ERROR
          This error is thrown if it fails to send a message.
static int ERROR_WRONG_APIKEY
          This error is thrown if API-Key is incorrect.
static int ERROR_WRONG_TIMEOUT
          This error is thrown if timeout is incorrect.
static int ERROR_WRONG_TIMESTAMP
          This error is thrown if the client's timestamp is too much different from the producer's one.
 
Method Summary
 java.lang.String getDescription()
          Gets the description of the error.
 int getErrorCode()
          Gets the error code sent by the producer.
 
Methods inherited from class SCCT.JavaSubscriber.SCCT_AbstractPackage
getCalendar, getPackageNumber
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_WRONG_APIKEY

public static final int ERROR_WRONG_APIKEY
This error is thrown if API-Key is incorrect.

See Also:
Constant Field Values

ERROR_WRONG_TIMEOUT

public static final int ERROR_WRONG_TIMEOUT
This error is thrown if timeout is incorrect.

See Also:
Constant Field Values

ERROR_WRONG_TIMESTAMP

public static final int ERROR_WRONG_TIMESTAMP
This error is thrown if the client's timestamp is too much different from the producer's one.

See Also:
Constant Field Values

ERROR_EXPIRED_TIMEOUT

public static final int ERROR_EXPIRED_TIMEOUT
This error is thrown if timeout is expired.

See Also:
Constant Field Values

ERROR_TRANSMISSION_ERROR

public static final int ERROR_TRANSMISSION_ERROR
This error is thrown if it fails to send a message.

See Also:
Constant Field Values

ERROR_LOST_CONNECTION

public static final int ERROR_LOST_CONNECTION
This error is thrown if SCCT notices that the connection is lost before the timeout expired.

See Also:
Constant Field Values

ERROR_DESTINATION_UNREACHABLE

public static final int ERROR_DESTINATION_UNREACHABLE
This error is thrown if SCCT is not able to establish a connection with the publisher.

See Also:
Constant Field Values
Method Detail

getDescription

public java.lang.String getDescription()
Gets the description of the error.

Returns:
A string representing the description of the error.

getErrorCode

public int getErrorCode()
Gets the error code sent by the producer.

Returns:
The error code.