GetReturnCode (arcpy)
サマリ
Return the message error code by index.
If the message for the specified index is a warning or informative message the function will return a 0; if the message is an error the function will return a value other than 0.
構文
GetReturnCode (index)
パラメータ | 説明 | データ タイプ |
index |
The specified position of the message in the returned list of messages, warnings, or errors. | Integer |
データ タイプ | 説明 |
Integer |
The return code of the message at the specified index position. |
コードのサンプル
GetReturnCode example
Returns the severity code for the specified message.
import arcpy
from arcpy import env
env.workspace = "C:/census/data.gdb"
arcpy.Erase_analysis("housing", "income", "low_income")
# Return the return code of the message in index position 3 (4th message)
#
print arcpy.GetReturnCode(3)
関連トピック
9/14/2013