IStatementEventListener.StatementErrorOccurred(StatementEvent) Method

Definition

The driver calls this method on all StatementEventListeners registered on the connection when it detects that a PreparedStatement is invalid.

[Android.Runtime.Register("statementErrorOccurred", "(Ljavax/sql/StatementEvent;)V", "GetStatementErrorOccurred_Ljavax_sql_StatementEvent_Handler:Javax.Sql.IStatementEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void StatementErrorOccurred (Javax.Sql.StatementEvent? e);
[<Android.Runtime.Register("statementErrorOccurred", "(Ljavax/sql/StatementEvent;)V", "GetStatementErrorOccurred_Ljavax_sql_StatementEvent_Handler:Javax.Sql.IStatementEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member StatementErrorOccurred : Javax.Sql.StatementEvent -> unit

Parameters

e
StatementEvent

an StatementEvent object describing the event of statement error occurred

Attributes

Remarks

The driver calls this method on all StatementEventListeners registered on the connection when it detects that a PreparedStatement is invalid. The driver calls this method just before it throws the SQLException, contained in the given event, to the application.

Added in 1.6.

Java documentation for javax.sql.StatementEventListener.statementErrorOccurred(javax.sql.StatementEvent).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to