ArcObjects Library Reference  (GeoDatabase)    

IGPMessages.AddError Method

Adds an error message to the messages.

[Visual Basic 6.0]
Sub AddError(
    ByVal ErrorCode As Long, _
    ByVal Message As String _
)
[Visual Basic .NET]
Public Sub AddError ( _
    ByVal ErrorCode As Integer, _
    ByVal Message As String _
)
[C#]
public void AddError (
    int ErrorCode,
    string Message
);
[Java]
public void addError (
    int ErrorCode,
    String Message
)
throws
    IOException,
    AutomationException
[C++]
HRESULT AddError(
  long ErrorCode,
  BSTR Message
);
[C++]

Parameters

ErrorCode [in]

  ErrorCode is a parameter of type long

Message [in]

  Message is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The AddError method creates a GPMessage of type esriGPMEssageTypeError and adds it to this collection.

See Also

IGPMessages Interface

 


Feedback Send feedback on this page