com.ibm.as400.access
Class InternalErrorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.ibm.as400.access.InternalErrorException
All Implemented Interfaces:
ReturnCodeException, Serializable

public class InternalErrorException
extends RuntimeException
implements ReturnCodeException

Represents an exception that indicates that an internal error has occurred. Instances of this class represent problems in the supplied code. Contact your service representative to report the problem.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
static int DATA_STREAM_LEVEL_NOT_VALID
          The return code indicating that the server job cannot support the level of data streams that the client is using.
static int DATA_STREAM_UNKNOWN
          The return code indicating that the data stream received from the server job was not of the type or format expected.
static int PASSWORD_IMPROPERLY_ENCRYPTED
          The return code indicating that the password has not been encrypted properly (pre-V2R2 encryption may have been used).
static int PROTOCOL_ERROR
          The return code indicating that a protocol error occurred while communicating with the system.
static int SECURITY_INVALID_STATE
          The return code indicating that the security manager is in a state that is not valid.
static int SYNTAX_ERROR
          The return code indicating that the server job received a data stream that had data or a format that was not valid.
static int UNEXPECTED_EXCEPTION
          The return code indicating that an unexpected exception was received.
static int UNEXPECTED_RETURN_CODE
          The return code indicating that an unexpected return code was received.
static int UNKNOWN
          The return code indicating that the exact cause of the failure is not known.
static int VRM_NOT_VALID
          The return code indicating that the server job cannot support this version of the client.
 
Constructor Summary
Constructor and Description
InternalErrorException(int returnCode)
          Constructs an InternalErrorException object.
 
Method Summary
Modifier and Type Method and Description
 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

DATA_STREAM_LEVEL_NOT_VALID

public static final int DATA_STREAM_LEVEL_NOT_VALID
The return code indicating that the server job cannot support the level of data streams that the client is using.

See Also:
Constant Field Values

DATA_STREAM_UNKNOWN

public static final int DATA_STREAM_UNKNOWN
The return code indicating that the data stream received from the server job was not of the type or format expected.

See Also:
Constant Field Values

PASSWORD_IMPROPERLY_ENCRYPTED

public static final int PASSWORD_IMPROPERLY_ENCRYPTED
The return code indicating that the password has not been encrypted properly (pre-V2R2 encryption may have been used).

See Also:
Constant Field Values

PROTOCOL_ERROR

public static final int PROTOCOL_ERROR
The return code indicating that a protocol error occurred while communicating with the system.

See Also:
Constant Field Values

SYNTAX_ERROR

public static final int SYNTAX_ERROR
The return code indicating that the server job received a data stream that had data or a format that was not valid.

See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
The return code indicating that the exact cause of the failure is not known. The detailed message may contain additional information.

See Also:
Constant Field Values

VRM_NOT_VALID

public static final int VRM_NOT_VALID
The return code indicating that the server job cannot support this version of the client.

See Also:
Constant Field Values

SECURITY_INVALID_STATE

public static final int SECURITY_INVALID_STATE
The return code indicating that the security manager is in a state that is not valid.

See Also:
Constant Field Values

UNEXPECTED_RETURN_CODE

public static final int UNEXPECTED_RETURN_CODE
The return code indicating that an unexpected return code was received.

See Also:
Constant Field Values

UNEXPECTED_EXCEPTION

public static final int UNEXPECTED_EXCEPTION
The return code indicating that an unexpected exception was received.

See Also:
Constant Field Values
Constructor Detail

InternalErrorException

public InternalErrorException(int returnCode)
Constructs an InternalErrorException object. It indicates that an internal error has occurred.

Parameters:
returnCode - The return code which identifies the message to be returned.
Method Detail

getReturnCode

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

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