Exceptions and Error Handling
An easy possibility to handle errors within adapters, is throwing exceptions. The class de.softproject.integration.adapter.core.AdapterException allows an error code and a message to be assigned to the root exception.
If the adapter misses parameter values, which can happen during the process modeling, they can throw a de.softproject.integration.adapter.core.MissingParameterException.
Configuration problems should be signalizes by adapters by throwing an de.softproject.integration.adapter.core.AdapterConfigurationException.
AdapterException Methods
| |
|---|---|
| public AdapterException(int reasonCode, String msg) | Constructor for an adapter exception with |
| public AdapterExeception(String msg, Exception ex) | Constructor for an adapter exception with |
| public AdapterException(int reasonCode, String msg,Exception ex) | Constructor for an adapter exception with |
MissingParameterException Methods
| |
|---|---|
| public MissingParameterException(int reasonCode, String msg) | Constructor for a MissingParameter exception with reasonCode (numeric code to identify fault cases) and msg (to describe the fault case) |
AdapterConfigurationException Methods
| |
|---|---|
| public AdapterConfigurationException(int reasonCode, String msg) | Constructor for an AdapterConfiguration exception with |