GetSeverityLevel

Diese ArcGIS 2.8-Dokumentation wurde archiviert und wird nicht mehr aktualisiert. Inhalt und Links sind möglicherweise veraltet. Verwenden Sie die aktuelle Dokumentation.

Zusammenfassung

Returns the severity level. The severity level is used to control how geoprocessing tools throw exceptions.

Syntax

GetSeverityLevel ()
Rückgabewert
DatentypErläuterung
Integer

The severity level.

  • 0A tool will not throw an exception, even if the tool produces an error or warning.
  • 1If a tool produces a warning or an error, it will throw an exception.
  • 2If a tool produces an error, it will throw an exception. This is the default.

Codebeispiel

GetSeverityLevel example

Use GetSeverityLevel to access the severity level.

import arcpy
severity_level = arcpy.GetSeverityLevel()
print(severity_level)

Verwandte Themen


In diesem Thema