GeoEco.Logging.Logger.Error

classmethod Logger.Error(format, *args)

Reports an error message to the user.

Like the C printf function or the Python % operator, this method generates a message string by merging in the optional arguments into the format string.

Error messages describe failures that halt processing and require the user to fix a problem and restart processing. ArcGIS highlights error messages in red in its user interface, and fails geoprocessing if even one error is reported. Because of this, do not report error messages unless the problem is serious enough to stop processing. For problems that may or may not be of consequence to the user, report warning messages.

If SetLogErrorsAsWarnings() has been called with True, the message will be reported as a warning rather than an error.

Note

Do not call this method to report exceptions caught inside methods of GeoEco classes. Call LogExceptionAsError() instead.

Parameters: