Show Navigation | Hide Navigation
You are here:
Writing geoprocessing scripts > Scripting Object: Properties and methods > Properties and Methods

GetSeverity method

Release 9.1
Last modified August 19, 2005
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Properties and Methods"

Related Topics

Gets the severity code (0, 1, 2) of the specified (by index) error.


object.GetSeverity(index as Long) as Long

Part Description
object The instantiated geoprocessing object
index Numeric position of the desired error. The severity code for the error is returned. (0=message, 1=warning, 2=error).


This scripting example gets the severity code for the third message returned from the execution of the Erase Coverage command.

from win32com.client import Dispatch
gp = Dispatch("esriGeoprocessing.GpDispatch.1")

gp.workspace = "H:\\Forestry\\forestry.mdb"
gp.erase_arc("housing", "income", "low_income")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.