|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IGPMessage
Provides access to the properties of a Geoprocessor message.
The GPMessage object is composed of a message type, error code, and description. The message type can be Error, Warning, or Informative.
See also IGPMessages
The IGPMessage interface returns a GPMessage object from an IGPMessages array, a collection of GPMessage objects. Messages are returned during the validating and executing of a geoprocessing tool.
Also refer to Building Geoprocessing Function Tools.
| Method Summary | |
|---|---|
String |
getDescription()
The description of the geoprocessing message. |
int |
getErrorCode()
The error code for the geoprocessing message. |
int |
getType()
The geoprocessing message type. |
boolean |
isAbort()
Indicates if the message is an abort. |
boolean |
isError()
Indicates if the message is an error. |
boolean |
isInformational()
Indicates if the message is informative. |
boolean |
isWarning()
Indicates if the message is a warning. |
void |
setDescription(String message)
The description of the geoprocessing message. |
void |
setErrorCode(int errorCode)
The error code for the geoprocessing message. |
void |
setType(int type)
The geoprocessing message type. |
| Method Detail |
|---|
void setType(int type)
throws IOException,
AutomationException
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getType()
throws IOException,
AutomationException
The get_Type property returns the message's type. Valid values are defined in the esriGPMessageType enumeration; they are: esriGPMessageTypeInformative, esriGPMessageTypeProcessDefinition, esriGPMessageTypeProcessStart, esriGPMessageTypeProcessStop, esriGPMessageTypeWarning, esriGPMessageTypeAbort, esriGPMessageTypeError, and esriGPMessageTypeEmpty.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setErrorCode(int errorCode)
throws IOException,
AutomationException
The ErrorCode property returns the error code for a given message. It applies only to messages of type error.
errorCode - The errorCode (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getErrorCode()
throws IOException,
AutomationException
The get_ErrorCode property returns the message's error code. It applies only to a message of type esriGPMessageTypeError.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setDescription(String message)
throws IOException,
AutomationException
message - The message (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getDescription()
throws IOException,
AutomationException
The get_Description property returns the actual message text string.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isInformational()
throws IOException,
AutomationException
The IsInformational method returns true if the message is of type esriGPMessageTypeInformative, esriGPMessageTypeProcessDefinition, esriGPMessageTypeProcessStart, and esriGPMessageTypeProcessStop.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isWarning()
throws IOException,
AutomationException
The IsWarning method returns true if the message is of type esriGPMessageTypeWarning.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isError()
throws IOException,
AutomationException
The IsError method returns true if the message is of type esriGPMessageTypeError.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isAbort()
throws IOException,
AutomationException
The IsAbort method returns true if the message is of type esriGPMessageTypeAbort.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||