The following table describes when various exceptions are thrown.
Exception | Description |
---|---|
AS400Exception.java | Thrown if the AS/400 system returns an error message. |
AS400SecurityException.java | Thrown if a security or authority error occurs. |
ConnectionDroppedException.java | Thrown if the connection is dropped unexpectedly. |
ErrorCompletingRequestException.java | Thrown if an error occurs before the request is completed. |
ExtendedIOException.java | Thrown if an error occurs while communicating with the AS/400. |
ExtendedIllegalArgumentException.java | Thrown if an argument is not valid. |
ExtendedIllegalStateException.java | Thrown if the AS/400 object is not in the proper state to perform the operation. |
IllegalObjectTypeException.java | Thrown if the AS/400 object is not of the required type. |
IllegalPathNameException.java | Thrown if an integrated file system path name is not valid. |
InternalErrorException.java | Thrown if an internal problem occurs. When this type of exception is thrown, contact your service representative to report the problem. |
ObjectAlreadyExistsException.java | Thrown if the AS/400 object already exists. |
ObjectDoesNotExistException.java | Thrown if the AS/400 object does not exist. |
RequestNotSupportedException.java | Thrown if the requested function is not supported because the AS/400 system is not at the correct level. |
ReturnCodeException.java | An interface for exceptions that contain a return code. The return code is used to further identify the cause of an error. |
ServerStartupException.java | Thrown if the AS/400 server cannot be started. |
See Inheritance structure for exceptions for more information about exceptions thrown by the AS/400 Toolbox for Java.