JRfcBaseException

Team-Fly

The JRfcBaseException class provides common methods for some of the other exception classes. These common methods are described next, and can be used in any exception class that is under JRfcBaseException in the class hierarchy.

  • getCausingException(). Returns the last exception raised.

  • getClassname(). Returns the class name of this exception.

  • toString(). Converts the exception message to a string.

JRfcIOException

This class is a subclass of JRfcBaseException and, in broad terms, is a class within the hierarchy that contains subclasses to deal with input/output errors. Of course, this class inherits all of the methods of JRfcBaseException. Currently, all I/O errors that are thrown have to do with a remote system, such as the Java server or the SAP system itself.

JRfcRemoteException

This class is a subclass of JRfcIOException. JRfcRemoteException is used if an exception occurs with a remote object, such as the SAP system.

JRfcRemoteAutoCreateException

Finally, a real exception! This class is nested under the JRfcRemoteException class, and is thrown to indicate that the automatic creation of an IRfcModule, an IStructure, or an ITable has failed.

JRfcRemoteServerException

This exception is thrown to indicate that an error has occurred in the remote server of certain middleware.

JRfcRfcBaseException

This class is the base class for exceptions thrown when an attempt to communicate with an R/3 system fails. See the inherited exception classes for the various reasons why an attempt to communicate can fail.

JRfcRfcAbapException

This class is raised if an exception occurs in the execution of a program on the SAP system. In addition to the methods inherited by superior classes, this class has the following methods:

  • getAbapMessage(). Returns the ABAP exception message.

  • getMessage(). Returns the ABAP exception message.

JRfcRfcConnectionException

This exception is thrown when a communication problem, including all problems concerning unreachable or unavailable servers (message server, application server, router, or ORB server), occurs with the R/3 system.

The following fields are defined within this class:

  • strIntstat. Internal description of the RFC connection.

  • strKey. RFC error code.

  • strMessage. Text describing the error.

  • strStatus. State of the RFC connection.

The getMessage() method, which returns RFC messages, is also defined for this class.

JRfcRfcParameterException

This exception is thrown if the interface of a remotely called function module does not fit the parameters provided. This situation includes missing obligatory parameters, parameters of the wrong type, or names of function modules that do not exist.


Team-Fly


Java & BAPI Technology for SAP
Java & BAPI Technology for SAP
ISBN: 761523057
EAN: N/A
Year: 1998
Pages: 199

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net