public class AbapClassException extends JCoException
Modifier and Type | Class and Description |
---|---|
static class |
AbapClassException.Mode
The Mode enumeration describes how class exceptions should be handled by
a server system.
|
JCO_ERROR_ABAP_CLASS_EXCEPTION, JCO_ERROR_ABAP_EXCEPTION, JCO_ERROR_APPLICATION_EXCEPTION, JCO_ERROR_CANCELLED, JCO_ERROR_COMMUNICATION, JCO_ERROR_CONCURRENT_CALL, JCO_ERROR_CONFIGURATION, JCO_ERROR_CONVERSION, JCO_ERROR_CREATE_SESSION, JCO_ERROR_DATA_PROVIDER_ERROR, JCO_ERROR_DESTINATION_DATA_INVALID, JCO_ERROR_DESTROY_SESSION, JCO_ERROR_DSR_LOAD_ERROR, JCO_ERROR_EXTENSION, JCO_ERROR_FIELD_NOT_FOUND, JCO_ERROR_FUNCTION_NOT_FOUND, JCO_ERROR_ILLEGAL_ARGUMENT, JCO_ERROR_ILLEGAL_STATE, JCO_ERROR_ILLEGAL_TID, JCO_ERROR_INITIALIZATION, JCO_ERROR_INTERNAL, JCO_ERROR_INVALID_HANDLE, JCO_ERROR_INVALID_REPOSITORY_CACHE, JCO_ERROR_JARM_LOAD_ERROR, JCO_ERROR_LOGON_FAILURE, JCO_ERROR_NOT_SUPPORTED, JCO_ERROR_NULL_HANDLE, JCO_ERROR_PASSIVATE_SESSION, JCO_ERROR_PASSWORD_CHANGE_REQUIRED, JCO_ERROR_PROGRAM, JCO_ERROR_PROTOCOL, JCO_ERROR_REGISTRATION_DENIED, JCO_ERROR_REPOSITORY_SERIALIZATION, JCO_ERROR_REQUEST_CANCELLED, JCO_ERROR_RESOURCE, JCO_ERROR_RESTORE_SESSION, JCO_ERROR_SERVER_DATA_INVALID, JCO_ERROR_SERVER_STARTUP, JCO_ERROR_SESSION_REF_NOT_VALID, JCO_ERROR_SHAREABLE_CONTAINER, JCO_ERROR_STATE_BUSY, JCO_ERROR_SYSTEM_FAILURE, JCO_ERROR_TIMEOUT, JCO_ERROR_UNSUPPORTED_CODEPAGE, JCO_ERROR_XML_PARSER
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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. |
getGroup, getKey, getMessageClass, getMessageNumber, getMessageParameter, getMessageParameters, getMessageText, getMessageType, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
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.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()
Copyright © 2017 SAP. All Rights Reserved.