JRfcBaseRuntimeException

Team-Fly

This class and the classes below it are exceptions that can occur during regular operation of an application. The JRfcBaseRuntimeException is similar to JRfcBaseException. This class has three primary methods that are inherited by the lower classes in the hierarchy.

  • getCausingException(). Returns the originating exception.

  • getClassname(). Returns the class that raised the exception.

  • toString(). Returns the exception as a string.

JRfcClassCastException

This exception is thrown when you attempt to cast a class to a subclass type that is not in the hierarchy.

JRfcComplexDataException

This class contains subclasses that deal with problems related to complex data, such as structures or tables.

JRfcComplexDataNoSuchFieldException

This exception is raised if the Java program tries to access a field in a structure or table that does not exist.

JRfcIllegalArgumentException

This exception is raised when an illegal value is passed back to the method.

JRfcIllegalStateException

This exception class may be thrown to indicate that an object’s state does not allow the desired operation.

JRfcIndexOutOfBoundsException

This exception class is thrown to indicate that an index of some kind (such as to an array, a string, or a vector) is out of range. The index is either negative or greater than or equal to the number of indexed elements.

JRfcMiddlewareException

This exception class is thrown to indicate that what went wrong is specific to the middleware implementing the Java access to RFC.

JRfcNoSuchParameterException

This exception is thrown if a parameter with a certain name cannot be found.

JRfcNullPointerException

This exception class is thrown when an application attempts to use a null pointer in a case where an object is required.

JRfcSimpleDataException

This exception class is used as the base class for all exceptions related to simple data items.

JRfcSimpleDataAbapConversionException

This exception class is thrown to indicate that an instance of type ISimple is not able to convert its data into the corresponding ABAP data type. For example, a Simple is mapped to an ABAP field of type CHAR with a length of 30. Any attempt to store a java.lang.String with a length greater than 30 would result in this exception class being thrown.

JRfcSimpleDataCastException

This exception class is thrown when the internal data cannot be cast to a desired type. For example, SimpleDataCastException is thrown if the getByte() method is invoked on an object of a class implementing ISimpleField, and the object contains data that cannot be interpreted as a byte (for example, 12345, “longstring”, 1.2345, “19971216”).

JRfcSimpleDataDateTimeFormatException

This exception is thrown to indicate that an attempt was made to convert a string to a date or time object, but the string did not have the correct format.

JRfcSimpleDataNumberFormatException

This exception is thrown to indicate that an attempt was made to convert a string to one of the numeric types, but the string did not have the correct format.

JRfcSimpleDataUnknownTypeException

This exception is thrown to indicate that an attempt was made to set a simple data item to an unknown type.


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