You can use the Informatica Connector Toolkit to create, edit, or delete messages and handle exceptions that occur during the design time or run time of the connector.
When you create messages, you specify the message text and message code, and you can include information on the message severity, cause, and user action. After you create messages, you can implement the code to handle exceptions. When you implement the code to handle the exception, you pass the message as an argument to the exception handing method.
Create design-time messages to handle design-time exceptions, such as service exceptions. Create run-time messages to handle run-time exceptions.
To create messages, perform the following steps:
In the
Connector Navigator
view, right-click the project and select
View and Create Messages
. The
Messages
dialog box appears.
Click
Add
.
The
Add New Message
dialog box appears.
Enter an ID for the message.
Enter a code for the message. At run time, the message code and the message text appears in the session log.
Specify the severity of the message.
Enter the message text.
You can include parameters in the message text and specify the parameters in Java message format.
The following example shows parameters used in Java message format:
Connection User [{0}], Port [{1,number,integer}], Connection time [{1,number}] milliseconds
Enter a description for the message.
Enter the cause of the error message.
Enter the suggested user action when the user encounters the error.
Specify whether the message is a design-time message or a run-time message.