com.ibm.as400.access
Class AS400Exception

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.as400.access.ErrorCompletingRequestException
                    |
                    +--com.ibm.as400.access.AS400Exception
All Implemented Interfaces:
ReturnCodeException, java.io.Serializable

public class AS400Exception
extends ErrorCompletingRequestException

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

See Also:
Serialized Form

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, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, 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:
message - 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.