public class CannotInitializeException
extends java.lang.Exception
Java task to be executed by an Import/Export Connector (IEC) application in your system landscape.
It includes an exception message and an exception reason. There are three possible reasons for this exception:
Use the getReason() method and the Throwable.getMessage() method for more details about your thrown exception.
Refer to the implementation information in the Java task topic.
| Modifier and Type | Field and Description |
|---|---|
static int |
ALREADY_EXIST
1: Reason code set by the IEC application when an entity already exists; See the
getReason() method of the exception for more details. |
static int |
DOES_NOT_EXIST
0: Reason code set by the IEC application when an entity does not exist; See the
getReason() method of the exception to get the code and
the Throwable.getMessage() method for more details about your thrown exception. |
static int |
INVALID
2: Reason code set by the IEC application when the initialization of a
Java Task is not valid; See the getReason() method of the exception for more details. |
| Constructor and Description |
|---|
CannotInitializeException(int reason,
java.lang.String message)
Constructs a new instance of
CannotInitializeException with a reason code and a text message. |
| Modifier and Type | Method and Description |
|---|---|
int |
getReason()
Returns the reason code of this exception.
|
public static final int DOES_NOT_EXIST
getReason() method of the exception to get the code and
the Throwable.getMessage() method for more details about your thrown exception.public static final int ALREADY_EXIST
getReason() method of the exception for more details.public static final int INVALID
Java Task is not valid; See the getReason() method of the exception for more details.public CannotInitializeException(int reason,
java.lang.String message)
CannotInitializeException with a reason code and a text message.reason - The reason code of this exceptionmessage - The exception message that specifies more information details; It is accessible by the Throwable.getMessage() method.public int getReason()
There are three possible reasons:
DOES_NOT_EXIST: when an entity does not exist. ALREADY_EXIST: when an entity already exist. INVALID: when the initialization of a Java task is not valid. Note
See the Throwable.getMessage() of your thrown exception for more details.
DOES_NOT_EXIST,
ALREADY_EXIST,
INVALID