|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.sap.conn.jco.JCoException
com.sap.conn.jco.AbapClassException
public class AbapClassException
This class represents an ABAP class exception. Using class exceptions with connectors is supported for ABAP systems from 7.20 onwards.
Nested Class Summary | |
---|---|
static class |
AbapClassException.Mode
The Mode enumeration describes how class exceptions should be handled by a server system. |
Field Summary |
---|
Constructor Summary | |
---|---|
AbapClassException(Exception javaException)
Creates an instance of an AbapClassException that represents the Java exception within an CX_REMOTE_APPL_ERROR. |
|
AbapClassException(String message,
JCoAbapObject abapObject)
Creates an instance of an AbapClassException. |
|
AbapClassException(String message,
String className,
JCoAbapObject abapObject,
JCoRemoteContext remoteContext)
Creates an instance of an AbapClassException. |
Method Summary | |
---|---|
String |
createCallStack()
Creates a String representation of the call stack of the AbapClassException, which is understood by an ABAP system. |
String |
createExceptionInfo()
Creates a string representation of additional information related to the AbapClassException. |
String |
getClassName()
Returns the class name of this ABAP class exception. |
JCoRemoteContext |
getRemoteContext()
Returns the remote context of this ABAP class exception. |
JCoAbapObject |
toAbapObject()
Returns the instance of JCoAbapObject that is used by JCo to represent an ABAP
class exception. |
Methods inherited from class com.sap.conn.jco.JCoException |
---|
getGroup, getKey, getMessageClass, getMessageNumber, getMessageParameter, getMessageParameters, getMessageText, getMessageType, toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbapClassException(String message, String className, JCoAbapObject abapObject, JCoRemoteContext remoteContext)
message
- The exception message in the current language.className
- The name of the exception class that has been thrown in the ABAP system.abapObject
- The instance of the exception represented as ABAP objectremoteContext
- The remote context contains information about the server system context, in which the
exception was thrown.public AbapClassException(String message, JCoAbapObject abapObject)
message
- The exception message in the current language.abapObject
- The instance of the exception represented as ABAP objectpublic AbapClassException(Exception javaException)
javaException
- The exception that shall be wrapped.Method Detail |
---|
public String getClassName()
public JCoAbapObject toAbapObject()
JCoAbapObject
that is used by JCo to represent an ABAP
class exception.
public JCoRemoteContext getRemoteContext()
public String createCallStack()
public String createExceptionInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |