Exceptions thrown by the IBM Toolbox for Java access classes

The following table describes when various exceptions are thrown.

Exception Description
AS400Exception Thrown when the iSeries system returns an error message.
AS400SecurityException Thrown when a security or authority error occurs.
ConnectionDroppedException Thrown when the connection is dropped unexpectedly.
Begin change ConnectionPoolException Thrown when a problem occurrs with the connection pool.End change
ErrorCompletingRequestException Thrown when an error occurs before the request is completed.
ExtendedIOException Thrown when an error occurs while communicating with the iSeries.
ExtendedIllegalArgumentException Thrown when an argument is not valid.
ExtendedIllegalStateException Thrown when the AS400 object is not in the proper state to perform the operation.
IllegalObjectTypeException Thrown when the AS400 object is not of the required type.
IllegalPathNameException Thrown when an integrated file system path name is not valid.
InternalErrorException Thrown when an internal problem occurs. When this type of exception is thrown, contact your service representative to report the problem.
Begin changeLicenseException Thrown when an error condition occurs while trying to retrieve a license.End change
ObjectAlreadyExistsException Thrown when the AS400 object already exists.
ObjectDoesNotExistException Thrown when the AS400 object does not exist.
Begin changeProxyException Thrown when an error occurrs while communicating with the proxy server.End change
RequestNotSupportedException Thrown when the requested function is not supported because the iSeries system is not at the correct level.
ReturnCodeException An interface for exceptions that contain a return code. The return code is used to further identify the cause of an error.
ServerStartupException Thrown when the iSeries server cannot be started.

See Inheritance structure for exceptions for more information about exceptions thrown by the IBM Toolbox for Java.