Click or drag to resize

EAPEventArgsError Method (String)

Sets the extention's result code and error message for this event. The result code is set to Error. Use Error(String, String, ExceptionOptions) to include an additional developer message and/or options.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public void Error(
	string message
)

Parameters

message
Type: SystemString
The error message.
Remarks
Note that this method does not stop execution of the current function call.
Examples
This sample shows how to use the Error method.
public class XExt : NetQuarry.MapperExtensionKernel
{
   public override void FieldButtonClick(IField sender, EAPEventArgs e)
   {        
      if (0 == EAPUtil.ToString(sender.Fields["company_name"].Value).Length)
      {
          e.Error("You must provide a Company Name before executing this command.");
          return;
      }
   }
}
See Also