Pcornel
Automation · Automation Design

Error Handling

Cheat sheet · https://pcornel.dk/topic.php?topic=5203

Back to the Topic

Answer

Error handling in automation design decides upfront how each step reacts to failure — stop, retry, skip or compensate — and ensures errors are logged with enough context to fix them.

Remember

  • Decide per step whether to stop, retry, skip or compensate.
  • Every error log must name the step, target and cause.
  • After a failure the system must be in a known state.

First checks

  • Try/except or block/rescue in code — handling
  • Error messages with context — diagnostics
  • Non-zero exit on failure — signal

Verify in this order

error → classify → handle/rollback → report

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5203

Confirmation

Confirm action

Continue?