forward.client
Class ClientForwardException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by forward.client.ClientForwardException
All Implemented Interfaces:
java.io.Serializable

public class ClientForwardException
extends java.lang.Exception

This is the implementation for exceptions with extended information about forwarding errors.

See Also:
Serialized Form

Field Summary
static int ERROR_CONNECTION_ERROR
          This describes a connection error, like connection closed while reading or serious connection errors.
static int ERROR_PROTOCOL_ERROR
          This describes a protocol error, like invalid signatures or invalid message length information.
static int ERROR_UNKNOWN_ERROR
          This describes an unknown exception.
static int ERROR_VERSION_ERROR
          This describes a protocol version error.
private  int m_errorCode
          This stores the reason of this exception.
 
Constructor Summary
ClientForwardException(int a_errorCode, java.lang.String a_message)
          This creates a new ClientForwardException.
 
Method Summary
 int getErrorCode()
          Returns the error code with the reason for this exception.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_CONNECTION_ERROR

public static final int ERROR_CONNECTION_ERROR
This describes a connection error, like connection closed while reading or serious connection errors.

See Also:
Constant Field Values

ERROR_PROTOCOL_ERROR

public static final int ERROR_PROTOCOL_ERROR
This describes a protocol error, like invalid signatures or invalid message length information.

See Also:
Constant Field Values

ERROR_VERSION_ERROR

public static final int ERROR_VERSION_ERROR
This describes a protocol version error.

See Also:
Constant Field Values

ERROR_UNKNOWN_ERROR

public static final int ERROR_UNKNOWN_ERROR
This describes an unknown exception.

See Also:
Constant Field Values

m_errorCode

private int m_errorCode
This stores the reason of this exception. Look at the constants in this class.

Constructor Detail

ClientForwardException

public ClientForwardException(int a_errorCode,
                              java.lang.String a_message)
This creates a new ClientForwardException.

Parameters:
a_errorCode - A code describing the reason for this exception. Look at the constants in this class.
a_message - Additional information about this exception. Look at the constructor of the Exception class for more information.
Method Detail

getErrorCode

public int getErrorCode()
Returns the error code with the reason for this exception. Look at the constants in this class for more information about errors.

Returns:
The error code of this exception.