2 * Firebird ADO.NET Data provider for .NET and Mono
4 * The contents of this file are subject to the Initial
5 * Developer's Public License Version 1.0 (the "License");
6 * you may not use this file except in compliance with the
7 * License. You may obtain a copy of the License at
8 * http://www.firebirdsql.org/index.php?op=doc&id=idpl
10 * Software distributed under the License is distributed on
11 * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
12 * express or implied. See the License for the specific
13 * language governing rights and limitations under the License.
15 * Copyright (c) 2002, 2005 Carlos Guzman Alvarez
16 * All Rights Reserved.
20 using FirebirdSql.Data.Common;
22 namespace FirebirdSql.Data.Firebird
26 /// <include file='Doc/en_EN/FbInfoMessageEventArgs.xml' path='doc/delegate[@name="FbInfoMessageEventHandler"]/overview/*'/>
27 public delegate void FbInfoMessageEventHandler(object sender, FbInfoMessageEventArgs e);
31 /// <include file='Doc/en_EN/FbInfoMessageEventArgs.xml' path='doc/class[@name="FbInfoMessageEventArgs"]/overview/*'/>
32 public sealed class FbInfoMessageEventArgs : EventArgs
36 private FbErrorCollection errors = new FbErrorCollection();
37 private string message = String.Empty;
43 /// <include file='Doc/en_EN/FbInfoMessageEventArgs.xml' path='doc/class[@name="FbInfoMessageEventArgs"]/property[@name="Errors"]/*'/>
44 public FbErrorCollection Errors
46 get { return this.errors; }
49 /// <include file='Doc/en_EN/FbInfoMessageEventArgs.xml' path='doc/class[@name="FbInfoMessageEventArgs"]/property[@name="Message"]/*'/>
52 get { return this.message; }
59 internal FbInfoMessageEventArgs(IscException ex)
61 this.message = ex.Message;
63 foreach (IscError error in ex.Errors)
65 this.errors.Add(error.Message, error.ErrorCode);