{"id":"automation-error-has-result-attribute","text":"`AutomationError` has `message` (str) and `result` (the failed `ExecuteResult`) attributes, enabling granular error inspection per host and module.","truth_value":"IN","source":"entries/2026/05/11/examples-06-automation-context-example_phase6_error_handling.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{"example":"except AutomationError as e:\n    print(f\"Message: {e.message}\")\n    print(f\"Module: {e.result.module}\")\n    print(f\"Host: {e.result.host}\")\n    print(f\"Error: {e.result.error}\")\n    print(f\"Changed: {e.result.changed}\")"},"explanation":{"steps":[{"node":"automation-error-has-result-attribute","truth_value":"IN","reason":"premise"}]}}