Table of Contents

Search

  1. Preface
  2. Introduction to Informatica Connector Toolkit
  3. Before you begin
  4. Develop a connector for Cloud Data Integration
  5. Import a connector
  6. Connection attributes
  7. Type system
  8. Connector metadata
  9. Partitioning capability
  10. Manual changes to Informatica Connector Toolkit source code
  11. Runtime behavior
  12. Connector example: MySQL_Cloud
  13. Version control integration
  14. Appendix A: Metadata models
  15. Appendix B: ASO model
  16. Appendix C: Connector project migration
  17. Appendix D: Frequently used generic APIs in Informatica Connector Toolkit
  18. Appendix E: Frequently asked questions

Cloud Data Integration Connector Toolkit Developer Guide

Cloud Data Integration Connector Toolkit Developer Guide

Implement Design-Time Messages

Implement Design-Time Messages

You can use the methods in the com.informatica.sdk.exceptions.ExceptionManager class to implement design-time messages.
To enable localization of messages, implement the createNlsAdapterSDKException() method in the ExceptionManager class.
The following sample code shows the message parameters passed to the createNlsAdapterSDKException() method:
ExceptionManager.createNlsAdapterSDKException(ExceptionManager.createNlsAdapterSDKException(MessageBundle.getInstance(), Messages.Test_CONN_SUCC_200, "admin", 5040, 138.76);
To implement design-time messages that do not require localization, implement the createNonNlsAdapterSDKException() method in the ExceptionManager class.
The following sample code shows the message string passed to the createNonNlsAdapterSDKException() method:
ExceptionManager.createNonNlsAdapterSDKException("Unknown error:" + e.getMessage());

0 COMMENTS

We’d like to hear from you!