Пример #1
0
 /*
 ** Name: AddError
 **
 ** Description:
 **	Using the message string, SQLState, and nativeError
 **	(ususally coming from an ErrInfo object), create a new
 **	error collection and one error object in the collection.
 */
 private void AddError(String message,
                       String sqlState,
                       int nativeError)
 {
     // add IngresError object into list
     if (errors == null)
     {
         errors = new IngresErrorCollection();
     }
     errors.Add(message, sqlState, nativeError);
 }
Пример #2
0
		internal void FireInfoMessageEvent(IngresErrorCollection errors)
		{
			if (errors == null  ||  errors.Count == 0)  // return if no warnings
				return;

			// retrieve the delegate from the Components.Events property
			IngresInfoMessageEventHandler infoMessageEventHandler =
				(IngresInfoMessageEventHandler)Events[objEeventInfoMessage];
			if (infoMessageEventHandler != null)
			{
				infoMessageEventHandler(
					this, new IngresInfoMessageEventArgs(errors));
			}
		}
Пример #3
0
		internal IngresInfoMessageEventArgs(
			IngresErrorCollection errors)
		{
			this._errors    = errors;
		}