com.ibm.as400.access
Class ProxyException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.ibm.as400.access.ProxyException
All Implemented Interfaces:
ReturnCodeException, Serializable

public class ProxyException
extends RuntimeException
implements ReturnCodeException

The ProxyException class represents an exception that indicates an error occurred while communicating with the proxy server.

See Also:
Serialized Form

Field Summary
static int CONNECTION_DROPPED
          The return code indicating that a connection to the proxy server was dropped.
static int CONNECTION_NOT_ESTABLISHED
          The return code indicating that a connection to the proxy server cannot be established.
static int CONNECTION_REJECTED
          The return code indicating that a connection to the proxy server was rejected.
static int VERSION_MISMATCH
          The return code indicating that communication failed to the proxy server because of a mismatch between code levels.
 
Method Summary
 int getReturnCode()
          Returns the return code associated with 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

CONNECTION_NOT_ESTABLISHED

public static final int CONNECTION_NOT_ESTABLISHED
The return code indicating that a connection to the proxy server cannot be established.

See Also:
Constant Field Values

CONNECTION_DROPPED

public static final int CONNECTION_DROPPED
The return code indicating that a connection to the proxy server was dropped. If the connection is via HTTP tunneling this return code indicates the client tried to use a session that was previously cleaned up by the server. The server cleaned up the session because it was idle long enough to indicate the client is no longer active. If the client was still active increase the timeout property so the server waits longer before cleaning up sessions.

See Also:
Constant Field Values

CONNECTION_REJECTED

public static final int CONNECTION_REJECTED
The return code indicating that a connection to the proxy server was rejected.

See Also:
Constant Field Values

VERSION_MISMATCH

public static final int VERSION_MISMATCH
The return code indicating that communication failed to the proxy server because of a mismatch between code levels. This usually occurs if the client and proxy server are running with different versions of the IBM Toolbox for Java or different versions of the JVM.

See Also:
Constant Field Values
Method Detail

getReturnCode

public int getReturnCode()
Returns the return code associated with this exception.

Specified by:
getReturnCode in interface ReturnCodeException
Returns:
The return code.