About working with results and messages
Developers that work with geoprocessing tools should check the messages and result returned by each geoprocessing tool they run, as well as running the tools within a Try, Catch, and Finally construct. The messages contain information about the running of the tool, such as parameters and any warnings or errors, and are the main communication between the tool, the geoprocessor, and the user. The result contains information about the tool's output, as described on the tool's reference page. The try, catch, finally block will catch the exception thrown by a tool that fails.
See Also:
Geoprocessing messagesHow to get returned messages
Working with result objects
Tool return values
Errors and exception handling in geoprocessing
Interpreting a tool reference page