com.ibm.as400.access
Class AS400Exception

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

public class AS400Exception
extends ErrorCompletingRequestException

The AS400Exception class represents an exception that indicates that an error has occurred on the server. One or more AS400Message objects are included in this exception.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.as400.access.ErrorCompletingRequestException
AS400_ERROR, EXIT_POINT_PROCESSING_ERROR, EXIT_PROGRAM_CALL_ERROR, EXIT_PROGRAM_DENIED_REQUEST, EXIT_PROGRAM_ERROR, EXIT_PROGRAM_NOT_FOUND, EXIT_PROGRAM_NUMBER_NOT_VALID, EXIT_PROGRAM_RESOLVE_ERROR, LENGTH_NOT_VALID, SPOOLED_FILE_NO_MESSAGE_WAITING, UNKNOWN, WRITER_JOB_ENDED
 
Constructor Summary
AS400Exception(AS400Message[] msgList)
          Constructs an AS400Exception object.
 
Method Summary
 AS400Message getAS400Message()
          Returns the AS400Message causing this exception.
 AS400Message[] getAS400MessageList()
          Returns the list of AS400Messages causing this exception.
 
Methods inherited from class com.ibm.as400.access.ErrorCompletingRequestException
getReturnCode
 
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
 

Constructor Detail

AS400Exception

public AS400Exception(AS400Message[] msgList)
Constructs an AS400Exception object.

Parameters:
msgList - The list of AS400Messages causing this exception.
Method Detail

getAS400Message

public AS400Message getAS400Message()
Returns the AS400Message causing this exception.

Returns:
The AS400Message causing this exception.

getAS400MessageList

public AS400Message[] getAS400MessageList()
Returns the list of AS400Messages causing this exception.

Returns:
The list of AS400Messages causing this exception.