From: Carlos G.A. <car...@us...> - 2002-11-15 12:29:44
|
Update of /cvsroot/firebird/Net-Provider/source/GDS In directory usw-pr-cvs1:/tmp/cvs-serv9721 Modified Files: isc_db_handle.cs Log Message: * Source/GDS/isc_db_handle.cs: Added event for info and warnings messages sent by Firebird server. Index: isc_db_handle.cs =================================================================== RCS file: /cvsroot/firebird/Net-Provider/source/GDS/isc_db_handle.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -b -U3 -r1.9 -r1.10 --- isc_db_handle.cs 12 Nov 2002 15:04:14 -0000 1.9 +++ isc_db_handle.cs 15 Nov 2002 12:29:37 -0000 1.10 @@ -28,12 +28,41 @@ namespace FirebirdSql.Data.INGDS { + internal class DbWarningMessageEventArgs : EventArgs + { + private GDSException exception; + private string message = ""; + + public string Message + { + get{return message;} + } + + public GDSException Exception + { + get{return exception;} + } + + public DbWarningMessageEventArgs(GDSException ex) + { + message = ex.ToString(); + exception = ex; + } + } + + internal delegate void DbWarningMessageHandler(object sender, DbWarningMessageEventArgs e); + /// <summary> /// The interface <code>isc_db_handle</code> represents a socket connection /// to the database server. /// </summary> internal interface isc_db_handle { + /// <summary> + /// Event for Server Warning messages + /// </summary> + event DbWarningMessageHandler DbWarningMessage; + /// <summary> /// Checks if have transactions opened /// </summary> |