AddEsqlHandlerInserts add an SQL code that allows an ESQL HANDLER that catches this exception to query the SQL code.
Namespace: IBM.Broker.PluginAssembly: IBM.Broker.Plugin (in IBM.Broker.Plugin.dll) Version: 9.0.0.0
public void AddEsqlHandlerInserts(
int sqlCode
)
public void AddEsqlHandlerInserts(
int sqlCode
)
Public Sub AddEsqlHandlerInserts (
sqlCode As Integer
)
Public Sub AddEsqlHandlerInserts (
sqlCode As Integer
)
public:
void AddEsqlHandlerInserts(
int sqlCode
)
public:
void AddEsqlHandlerInserts(
int sqlCode
)
member AddEsqlHandlerInserts :
sqlCode : int -> unit
member AddEsqlHandlerInserts :
sqlCode : int -> unit
Parameters
- sqlCode
- Type:
System Int32
The SQLCode integer value.
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.