Table of Contents

  1. Preface
  2. Introduction to the Informatica Connector Toolkit
  3. Installing and Upgrading the Informatica Connector Toolkit
  4. Building an Adapter
  5. Connection Attributes
  6. Type System
  7. Metadata Objects
  8. Partitioning Capability
  9. Run-time Behavior
  10. Adapter Example: Instagram
  11. Adapter Example: MySQL
  12. Adapter Example: YouTube
  13. Metadata Models
  14. ASO Model
  15. Adapter Project Migration
  16. Frequently Asked Questions

Informatica Connector Toolkit Developer Guide

Informatica Connector Toolkit Developer Guide

Create Messages

Create Messages

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 adapter.
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:
  1. In the Connector Navigator view, right-click the project and select View and Create Messages. The Messages dialog box appears.
  2. Click Add. The Add New Message dialog box appears.
  3. Enter an ID for the message.
  4. Enter a code for the message. At run time, the message code and the message text appears in the session log.
  5. Specify the severity of the message.
  6. Enter the message text. You can include parameters in the message text and specify the parameters in C format or Java message format.
    The following examples show parameters used in C format and Java message format:
    • The parameters in the following message text uses C format: Connection User [%s], Port [%d], Connection time [%f] milliseconds.
    • The parameters in the following message text uses Java format: Connection User [{0}], Port [{1,number,integer}], Connection time [{1,number}] milliseconds.
  7. Enter a description for the message.
  8. Enter the cause of the error message.
  9. Enter the suggested user action when the user encounters the error.
  10. Specify whether the message is a design-time message or a run-time message.
  11. Click OK. The Messages dialog box appears.
  12. Click Finish. The message XML files appear under the Message folder in the Connector Navigator view.

Updated May 15, 2019


Explore Informatica Network