public class JCoException extends Exception
Modifier and Type | Field and Description |
---|---|
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_CBRFC_SERIALIZE
An exception is thrown while processing data in columnBased mode.
|
static int |
JCO_ERROR_CHECK_SESSION |
static int |
JCO_ERROR_COMMUNICATION
Exception is caused by network problems, connection breakdowns, gateway problems,
unavailability 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_CONVERSION
A conversion between two representations of either a parameter, structure, or table field
has failed.
|
static int |
JCO_ERROR_CREATE_SESSION |
static int |
JCO_ERROR_DATA_PROVIDER_ERROR
A data provider signaled an internal error to JCo.
|
static int |
JCO_ERROR_DESTINATION_DATA_INVALID
A destination instance was used, for which the configuration was either deleted or updated.
|
static int |
JCO_ERROR_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_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.
|
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 |
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
Deprecated.
replaced by JCO_ERROR_SERIALIZATION
|
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 |
static int |
JCO_ERROR_SERIALIZATION
Indicates an error in json stream.
|
static int |
JCO_ERROR_SERVER_ACCESS_DENIED
Exception thrown whenever the server detects an authorization violation.
|
static int |
JCO_ERROR_SERVER_DATA_INVALID
A 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 |
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 and Description |
---|
JCoException(int group,
String message)
Creates an instance of the error object with the specified message.
|
JCoException(int group,
String key,
String message)
Creates an instance of the error object with the specified message.
|
JCoException(int group,
String message,
String messageClass,
char messageType,
String messageNumber,
String[] messageParameters,
Throwable cause,
String raisedBy)
Creates an instance of the exception object with the specified message
and more information for ABAP messages.
|
JCoException(int group,
String key,
String message,
String messageClass,
char messageType,
String messageNumber,
String[] messageParameters)
Creates an instance of the exception object with the specified message
and more information for ABAP messages.
|
JCoException(int group,
String key,
String message,
String messageClass,
char messageType,
String messageNumber,
String[] messageParameters,
Throwable cause)
Creates an instance of the exception object with the specified message
and more information for ABAP messages.
|
JCoException(int group,
String key,
String message,
String messageClass,
char messageType,
String messageNumber,
String[] messageParameters,
Throwable cause,
String raisedBy)
Creates an instance of the exception object with the specified message
and more information for ABAP messages.
|
JCoException(int group,
String key,
String message,
Throwable cause)
Creates an instance of the error object with the specified message.
|
JCoException(int group,
String message,
Throwable cause)
Creates an instance of the error object with the specified message.
|
Modifier and Type | Method and Description |
---|---|
int |
getGroup()
Returns the error group.
|
String |
getKey()
Returns the error key.
|
String |
getMessageClass()
Returns the ABAP message class, if T100 message information is available.
|
String |
getMessageNumber()
Returns the ABAP message number, if T100 message information is available.
|
String |
getMessageParameter(int index)
Returns the ABAP message parameter at position index or
null , if there is none at that position. |
String[] |
getMessageParameters()
Returns the ABAP message parameters as array.
|
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.
|
String |
toString()
Returns a short description of this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
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_CBRFC_SERIALIZE
public static final int JCO_ERROR_PASSWORD_CHANGE_REQUIRED
public static final int JCO_ERROR_DSR_LOAD_ERROR
public static final int JCO_ERROR_SESSION_REF_NOT_VALID
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
public static final int JCO_ERROR_PASSIVATE_SESSION
public static final int JCO_ERROR_RESTORE_SESSION
public static final int JCO_ERROR_DESTROY_SESSION
public static final int JCO_ERROR_CHECK_SESSION
public static final int JCO_ERROR_DESTINATION_DATA_INVALID
JCoDestinationManager
.JCoDestination.isValid()
returns false
for the respective destination instance.public static final int JCO_ERROR_SERVER_DATA_INVALID
public static final int JCO_ERROR_SERVER_ACCESS_DENIED
public static final int JCO_ERROR_INVALID_REPOSITORY_CACHE
public static final int JCO_ERROR_SERIALIZATION
public static final int JCO_ERROR_REPOSITORY_SERIALIZATION
public JCoException(int group, String key, String message)
group
- the error group identifying the errorkey
- error code to identify the errormessage
- the specified detail messagepublic JCoException(int group, String message)
group
- the error group identifying the errormessage
- the specified detail messagepublic JCoException(int group, String key, String message, Throwable cause)
group
- the error group identifying the errorkey
- error code to identify the errormessage
- the specified detail messagecause
- a Throwable that caused the JCoExceptionpublic JCoException(int group, String message, Throwable cause)
group
- the error group identifying the errormessage
- the specified detail messagecause
- a Throwable that caused the JCoExceptionpublic JCoException(int group, String key, String message, String messageClass, char messageType, String messageNumber, String[] messageParameters)
group
- the error group identifying the errorkey
- error code to identify the errormessage
- the specified detail messagemessageClass
- the specified ABAP message classmessageType
- the specified ABAP message type, e.g. 'A' or 'E'messageNumber
- the specified ABAP message numbermessageParameters
- the specified ABAP message Parameterspublic JCoException(int group, String key, String message, String messageClass, char messageType, String messageNumber, String[] messageParameters, Throwable cause)
group
- the error group identifying the errorkey
- error code to identify the errormessage
- the specified detail messagemessageClass
- the specified ABAP message classmessageType
- the specified ABAP message type, e.g. 'A' or 'E'messageNumber
- the specified ABAP message numbermessageParameters
- the specified ABAP message Parameterscause
- a Throwable that caused the JCoExceptionpublic JCoException(int group, String message, String messageClass, char messageType, String messageNumber, String[] messageParameters, Throwable cause, String raisedBy)
group
- the error group identifying the errormessage
- the specified detail messagemessageClass
- the specified ABAP message classmessageType
- the specified ABAP message type, e.g. 'A' or 'E'messageNumber
- the specified ABAP message numbermessageParameters
- the specified ABAP message Parameterscause
- a Throwable that caused the JCoExceptionraisedBy
- some information about the system where the exception / message was raised frompublic JCoException(int group, String key, String message, String messageClass, char messageType, String messageNumber, String[] messageParameters, Throwable cause, String raisedBy)
group
- the error group identifying the errorkey
- error code to identify the errormessage
- the specified detail messagemessageClass
- the specified ABAP message classmessageType
- the specified ABAP message type, e.g. 'A' or 'E'messageNumber
- the specified ABAP message numbermessageParameters
- the specified ABAP message Parameterscause
- a Throwable that caused the JCoExceptionraisedBy
- some information about the system where the exception / message was raised frompublic final int getGroup()
JCO_ERROR
.
Details about the different meanings are available there.public final String getKey()
public String getMessageClass()
public String getMessageNumber()
public String getMessageText()
public String getMessageParameter(int index)
null
, if there is none at that position.
index
- index of the parameter valid is between 0 and 3null
, if there is nonepublic String[] getMessageParameters()
null
.
Prerequisite is that T100 information is available at all.public char getMessageType()
Copyright © 2021 SAP. All rights reserved.