NBDatabaseException AddEsqlHandlerInserts Method IBM Integration Bus
AddEsqlHandlerInserts add an SQL code that allows an ESQL HANDLER that catches this exception to query the SQL code.

Namespace: IBM.Broker.Plugin
Assembly: IBM.Broker.Plugin (in IBM.Broker.Plugin.dll) Version: 9.0.0.0
Syntax

public void AddEsqlHandlerInserts(
	int sqlCode
)
Remarks

NBDatabaseException exceptions that are thrown to be handled by ESQL must be constructed in a particular format. There must be an outer "root" exception that contains the sqlcode, and then an InnerException that contains the sql state, native error and error text. This method should be called on the outer "root" exception.
See Also