|
||||||||||
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
public class JCoException
General JCo exception object. It supports getting information about so-called T100 messages, if the ABAP system used a message statement for signalling an exceptional situation. T100 is the possibility in ABAP to define language independent error messages. The true human-readable message can be generated using the key information (message class and number), and the parameters, which should be language-neutral.
Field Summary | |
---|---|
static int |
JCO_ERROR_ABAP_CLASS_EXCEPTION
A ABAP class exception has been thrown by a function module in the remote system. |
static int |
JCO_ERROR_ABAP_EXCEPTION
An exception has been thrown by a function module in the remote system. |
static int |
JCO_ERROR_APPLICATION_EXCEPTION
An application error occurred in a JCo server |
static int |
JCO_ERROR_CANCELLED
A registered server connection has been canceled on the gateway. |
static int |
JCO_ERROR_COMMUNICATION
Exception is caused by network problems, connection breakdowns, gateway problems, inavailability of the remote SAP system, etc. |
static int |
JCO_ERROR_CONCURRENT_CALL
A concurrent method call has been detected. |
static int |
JCO_ERROR_CONFIGURATION
A general configuration error detected. |
static int |
JCO_ERROR_CONTEXT_NOT_FOUND
Deprecated. Unused |
static int |
JCO_ERROR_CONVERSION
A conversion between two representations of either a parameter, structure, or table field has failed. |
static int |
JCO_ERROR_CREATE_SESSION
Used in SessionException for exceptions of type SessionException.Type.CREATE_SESSION . |
static int |
JCO_ERROR_DATA_PROVIDER_ERROR
A data provider signalled an internal error to JCo |
static int |
JCO_ERROR_DESTINATION_DATA_INVALID
An destination instance was used, for which the configuration was either deleted or updated. |
static int |
JCO_ERROR_DESTROY_SESSION
Used in SessionException for exceptions of type SessionException.Type.DESTROY_SESSION . |
static int |
JCO_ERROR_DSR_LOAD_ERROR
DSR is turned on via JCo property, but the library could not loaded properly |
static int |
JCO_ERROR_DSR_PASSPORT_NOT_RECEIVED
Deprecated. No longer used |
static int |
JCO_ERROR_DSR_PASSPORT_NOT_VALID
Deprecated. No longer used |
static int |
JCO_ERROR_EXTENSION
An exception is thrown due to a situation caused by an infrastructure extension |
static int |
JCO_ERROR_FIELD_NOT_FOUND
A field requested from either a JCoRecord or one of its extending types does not exist |
static int |
JCO_ERROR_FUNCTION_NOT_FOUND
A function template could not completely be retrieved from the repository in a JCo server or an error occured during creation of it. |
static int |
JCO_ERROR_ILLEGAL_ARGUMENT
An illegal method argument has been detected |
static int |
JCO_ERROR_ILLEGAL_STATE
An illegal situation occurred within JCo runtime. |
static int |
JCO_ERROR_ILLEGAL_TID
An invalid transaction ID has been encountered. |
static int |
JCO_ERROR_INITIALIZATION
Some initialization failed within JCo |
static int |
JCO_ERROR_INTERNAL
An internal error in the JCo runtime. |
static int |
JCO_ERROR_INVALID_HANDLE
A connection handle used internally is invalid, e.g. |
static int |
JCO_ERROR_INVALID_REPOSITORY_CACHE
Indicates an invalid repository cache. |
static int |
JCO_ERROR_JARM_LOAD_ERROR
jARM is turned on via JCo property, but the library could not loaded properly |
static int |
JCO_ERROR_LOGON_FAILURE
Authorization failures during the logon phase in the ABAP backend. |
static int |
JCO_ERROR_NOT_SUPPORTED
Used for various situations that are not supported within JCo. |
static int |
JCO_ERROR_NULL_HANDLE
A connection handle used internally is null |
static int |
JCO_ERROR_PASSIVATE_SESSION
Used in SessionException for exceptions of type SessionException.Type.PASSIVATE_SESSION . |
static int |
JCO_ERROR_PASSWORD_CHANGE_REQUIRED
When connecting to a partner system that does not allow to logon with initial and expired passwords this group will be used. |
static int |
JCO_ERROR_PROGRAM
The application using JCo provides JCo wrong information or is behaving incorrectly. |
static int |
JCO_ERROR_PROTOCOL
An internal communication protocol error has been detected, while processing data coming over the line. |
static int |
JCO_ERROR_REGISTRATION_DENIED
The gateway is protected with a reg_info file, and the registration of a server failed due to incomplete permissions of the current server. |
static int |
JCO_ERROR_REPOSITORY_SERIALIZATION
Indicates an error in json stream. |
static int |
JCO_ERROR_REQUEST_CANCELLED
A function module execution was cancelled because the scope/session, in which it was running, has been finished. |
static int |
JCO_ERROR_RESOURCE
Indicates that JCo has issues with resources, such as connections in a connection pool, destinations, or servers. |
static int |
JCO_ERROR_RESTORE_SESSION
Used in SessionException for exceptions of type SessionException.Type.RESTORE_SESSION . |
static int |
JCO_ERROR_SERVER_DATA_INVALID
An server instance was used, for which the configuration was either deleted or updated. |
static int |
JCO_ERROR_SERVER_STARTUP
Something went wrong during the startup phase of a JCo server. |
static int |
JCO_ERROR_SESSION_REF_NOT_VALID
The registered SessionReferenceProvider returned an invalid SessionReference |
static int |
JCO_ERROR_SHAREABLE_CONTAINER
Not used in standalone environment. |
static int |
JCO_ERROR_STATE_BUSY
The remote ABAP system is busy. |
static int |
JCO_ERROR_SYSTEM_FAILURE
A system failure has occurred in the remote SAP system. |
static int |
JCO_ERROR_TIMEOUT
A timeout occurred while trying to logon to an ABAP system |
static int |
JCO_ERROR_UNSUPPORTED_CODEPAGE
The remote SAP system or the local systems runs under a codepage, which is not supported by JCoRuntime. |
static int |
JCO_ERROR_XML_PARSER
An exception is thrown while processing XML like serialized data. |
Constructor Summary | |
---|---|
JCoException(int group,
java.lang.String message)
Creates an instance of the error object with the specified message |
|
JCoException(int group,
java.lang.String key,
java.lang.String message)
Creates an instance of the error object with the specified message |
|
JCoException(int group,
java.lang.String message,
java.lang.String messageClass,
char messageType,
java.lang.String messageNumber,
java.lang.String[] messageParameters,
java.lang.Throwable cause,
java.lang.String raisedBy)
Creates an instance of the exception object with the specified message and more information for ABAP messages |
|
JCoException(int group,
java.lang.String key,
java.lang.String message,
java.lang.String messageClass,
char messageType,
java.lang.String messageNumber,
java.lang.String[] messageParameters)
Creates an instance of the exception object with the specified message and more information for ABAP messages |
|
JCoException(int group,
java.lang.String key,
java.lang.String message,
java.lang.String messageClass,
char messageType,
java.lang.String messageNumber,
java.lang.String[] messageParameters,
java.lang.Throwable cause)
Creates an instance of the exception object with the specified message and more information for ABAP messages |
|
JCoException(int group,
java.lang.String key,
java.lang.String message,
java.lang.String messageClass,
char messageType,
java.lang.String messageNumber,
java.lang.String[] messageParameters,
java.lang.Throwable cause,
java.lang.String raisedBy)
Creates an instance of the exception object with the specified message and more information for ABAP messages |
|
JCoException(int group,
java.lang.String key,
java.lang.String message,
java.lang.Throwable cause)
Creates an instance of the error object with the specified message |
|
JCoException(int group,
java.lang.String message,
java.lang.Throwable cause)
Creates an instance of the error object with the specified message |
Method Summary | |
---|---|
int |
getGroup()
Returns the error group. |
java.lang.String |
getKey()
Returns the error key. |
java.lang.String |
getMessageClass()
Returns the ABAP message class, if T100 message information is available. |
java.lang.String |
getMessageNumber()
Returns the ABAP message number, if T100 message information is available. |
java.lang.String |
getMessageParameter(int index)
Returns the ABAP message parameter at position index or null if there is none at that position. |
java.lang.String[] |
getMessageParameters()
Returns the ABAP message parameters as array. |
java.lang.String |
getMessageText()
Returns the ABAP message text, if T100 message information is available. |
char |
getMessageType()
Returns the ABAP message type, if T100 message information is available. |
java.lang.String |
toString()
Returns a short description of this exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int JCO_ERROR_PROGRAM
public static final int JCO_ERROR_CONFIGURATION
public static final int JCO_ERROR_COMMUNICATION
public static final int JCO_ERROR_LOGON_FAILURE
public static final int JCO_ERROR_SYSTEM_FAILURE
public static final int JCO_ERROR_APPLICATION_EXCEPTION
public static final int JCO_ERROR_RESOURCE
public static final int JCO_ERROR_PROTOCOL
public static final int JCO_ERROR_INTERNAL
public static final int JCO_ERROR_CANCELLED
public static final int JCO_ERROR_STATE_BUSY
public static final int JCO_ERROR_ABAP_CLASS_EXCEPTION
AbapClassException
.
public static final int JCO_ERROR_REQUEST_CANCELLED
public static final int JCO_ERROR_REGISTRATION_DENIED
public static final int JCO_ERROR_EXTENSION
public static final int JCO_ERROR_NULL_HANDLE
public static final int JCO_ERROR_CONVERSION
JCoRecord.setValue()
methods.
Used in ConversionException
.
public static final int JCO_ERROR_FUNCTION_NOT_FOUND
public static final int JCO_ERROR_ILLEGAL_TID
public static final int JCO_ERROR_UNSUPPORTED_CODEPAGE
public static final int JCO_ERROR_ABAP_EXCEPTION
AbapException
.
public static final int JCO_ERROR_FIELD_NOT_FOUND
public static final int JCO_ERROR_NOT_SUPPORTED
public static final int JCO_ERROR_SERVER_STARTUP
public static final int JCO_ERROR_XML_PARSER
XMLParserException
.
public static final int JCO_ERROR_ILLEGAL_ARGUMENT
public static final int JCO_ERROR_CONCURRENT_CALL
public static final int JCO_ERROR_INVALID_HANDLE
public static final int JCO_ERROR_INITIALIZATION
public static final int JCO_ERROR_TIMEOUT
public static final int JCO_ERROR_ILLEGAL_STATE
public static final int JCO_ERROR_CONTEXT_NOT_FOUND
public static final int JCO_ERROR_PASSWORD_CHANGE_REQUIRED
PasswordChangeHandler
is registered.
public static final int JCO_ERROR_DSR_LOAD_ERROR
public static final int JCO_ERROR_DSR_PASSPORT_NOT_RECEIVED
public static final int JCO_ERROR_DSR_PASSPORT_NOT_VALID
public static final int JCO_ERROR_SESSION_REF_NOT_VALID
SessionReferenceProvider
returned an invalid SessionReference
public static final int JCO_ERROR_JARM_LOAD_ERROR
public static final int JCO_ERROR_DATA_PROVIDER_ERROR
public static final int JCO_ERROR_SHAREABLE_CONTAINER
public static final int JCO_ERROR_CREATE_SESSION
SessionException
for exceptions of type SessionException.Type.CREATE_SESSION
. See details there.
public static final int JCO_ERROR_PASSIVATE_SESSION
SessionException
for exceptions of type SessionException.Type.PASSIVATE_SESSION
. See details there.
public static final int JCO_ERROR_RESTORE_SESSION
SessionException
for exceptions of type SessionException.Type.RESTORE_SESSION
. See details there.
public static final int JCO_ERROR_DESTROY_SESSION
SessionException
for exceptions of type SessionException.Type.DESTROY_SESSION
. See details there.
public static final int JCO_ERROR_DESTINATION_DATA_INVALID
JCoDestinationManager
.
JCoDestination.isValid()
would return false
in this case.
public static final int JCO_ERROR_SERVER_DATA_INVALID
JCoServerFactory
.
JCoServer.isValid()
would return false
in this case.
public static final int JCO_ERROR_INVALID_REPOSITORY_CACHE
public static final int JCO_ERROR_REPOSITORY_SERIALIZATION
Constructor Detail |
---|
public JCoException(int group, java.lang.String key, java.lang.String message)
group
- the error group identifying the errorkey
- error code to identify the errormessage
- the specified detail message.public JCoException(int group, java.lang.String message)
group
- the error group identifying the errormessage
- the specified detail message.public JCoException(int group, java.lang.String key, java.lang.String message, java.lang.Throwable cause)
group
- the error group identifying the errorkey
- error code to identify the errormessage
- the specified detail message.cause
- a Throwable that caused the JCoException.public JCoException(int group, java.lang.String message, java.lang.Throwable cause)
group
- the error group identifying the errormessage
- the specified detail message.cause
- a Throwable that caused the JCoException.public JCoException(int group, java.lang.String key, java.lang.String message, java.lang.String messageClass, char messageType, java.lang.String messageNumber, java.lang.String[] messageParameters)
group
- the error group identifying the errorkey
- error code to identify the errormessage
- the specified detail message.messageClass
- the specified ABAP message class.messageType
- the specified ABAP message type, e.g. 'A' or 'E'messageNumber
- the specified ABAP message number.messageParameters
- the specified ABAP message Parameters.public JCoException(int group, java.lang.String key, java.lang.String message, java.lang.String messageClass, char messageType, java.lang.String messageNumber, java.lang.String[] messageParameters, java.lang.Throwable cause)
group
- the error group identifying the errorkey
- error code to identify the errormessage
- the specified detail message.messageClass
- the specified ABAP message class.messageType
- the specified ABAP message type, e.g. 'A' or 'E'messageNumber
- the specified ABAP message number.messageParameters
- the specified ABAP message Parameters.cause
- a Throwable that caused the JCoException.public JCoException(int group, java.lang.String message, java.lang.String messageClass, char messageType, java.lang.String messageNumber, java.lang.String[] messageParameters, java.lang.Throwable cause, java.lang.String raisedBy)
group
- the error group identifying the errormessage
- the specified detail message.messageClass
- the specified ABAP message class.messageType
- the specified ABAP message type, e.g. 'A' or 'E'messageNumber
- the specified ABAP message number.messageParameters
- the specified ABAP message Parameters.cause
- a Throwable that caused the JCoException.raisedBy
- some information about the system where the exception / message was raised from.public JCoException(int group, java.lang.String key, java.lang.String message, java.lang.String messageClass, char messageType, java.lang.String messageNumber, java.lang.String[] messageParameters, java.lang.Throwable cause, java.lang.String raisedBy)
group
- the error group identifying the errorkey
- error code to identify the errormessage
- the specified detail message.messageClass
- the specified ABAP message class.messageType
- the specified ABAP message type, e.g. 'A' or 'E'messageNumber
- the specified ABAP message number.messageParameters
- the specified ABAP message Parameters.cause
- a Throwable that caused the JCoException.raisedBy
- some information about the system where the exception / message was raised from.Method Detail |
---|
public final int getGroup()
public final java.lang.String getKey()
public java.lang.String getMessageClass()
public java.lang.String getMessageNumber()
public java.lang.String getMessageText()
public java.lang.String getMessageParameter(int index)
index
- index of the parameter valid is between 0 and 3
public java.lang.String[] getMessageParameters()
public char getMessageType()
public java.lang.String toString()
toString
in class java.lang.Throwable
JCoException
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |