WebSphere Message Broker™ V8.0.0.0 .NET Plugin Node API
AddEsqlHandlerInsertsInner Method (sqlState, sqlNativeError, sqlErrorText)
NamespacesIBM.Broker.PluginNBDatabaseExceptionAddEsqlHandlerInsertsInner(String, Int32, String)
SUMMARY
AddEsqlHandlerInserts adds information to the exception that allows an ESQL HANDLER to catch this exception by the specified SQLCode. Constructs ESQL Handler Inserts with the SQL state, native Error and Error text.
Declaration Syntax
C#Visual BasicVisual C++F#
public void AddEsqlHandlerInsertsInner(
	string sqlState,
	int sqlNativeError,
	string sqlErrorText
)
Public Sub AddEsqlHandlerInsertsInner ( _
	sqlState As String, _
	sqlNativeError As Integer, _
	sqlErrorText As String _
)
public:
void AddEsqlHandlerInsertsInner(
	String^ sqlState, 
	int sqlNativeError, 
	String^ sqlErrorText
)
member AddEsqlHandlerInsertsInner : 
        sqlState:string * 
        sqlNativeError:int * 
        sqlErrorText:string -> unit 
Parameters
sqlState (String)
The SQLState string.
sqlNativeError (Int32)
The SQLNativeError integer value.
sqlErrorText (String)
The SQLErrorText string.
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 InnerException.

Assembly: IBM.Broker.Plugin (Module: IBM.Broker.Plugin) Version: 8.0.0.0