Package com.highdeal.iec
Class CannotInitializeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.iec.CannotInitializeException
- All Implemented Interfaces:
Serializable
Exception thrown during the initialization of a customized
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.
Implementation in Your IEC Application
Refer to the implementation information in the Java task topic.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int1: Reason code set by the IEC application when an entity already exists; See thegetReason()method of the exception for more details.static final int0: Reason code set by the IEC application when an entity does not exist; See thegetReason()method of the exception to get the code and theThrowable.getMessage()method for more details about your thrown exception.static final int2: Reason code set by the IEC application when the initialization of aJava Taskis not valid; See thegetReason()method of the exception for more details. -
Constructor Summary
ConstructorsConstructorDescriptionCannotInitializeException(int reason, String message) Constructs a new instance ofCannotInitializeExceptionwith a reason code and a text message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DOES_NOT_EXIST
public static final int DOES_NOT_EXIST0: Reason code set by the IEC application when an entity does not exist; See thegetReason()method of the exception to get the code and theThrowable.getMessage()method for more details about your thrown exception.- See Also:
-
ALREADY_EXIST
public static final int ALREADY_EXIST1: Reason code set by the IEC application when an entity already exists; See thegetReason()method of the exception for more details.- See Also:
-
INVALID
public static final int INVALID2: Reason code set by the IEC application when the initialization of aJava Taskis not valid; See thegetReason()method of the exception for more details.- See Also:
-
-
Constructor Details
-
CannotInitializeException
Constructs a new instance ofCannotInitializeExceptionwith a reason code and a text message.- Parameters:
reason- The reason code of this exceptionmessage- The exception message that specifies more information details; It is accessible by theThrowable.getMessage()method.
-
-
Method Details
-
getReason
public int getReason()Returns the reason code of this exception.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 aJava taskis not valid.
Note
See the
Throwable.getMessage()of your thrown exception for more details.- Returns:
- The reason code
- See Also:
-