Exception: Plutonium::Interaction::Async::Executor::TargetRefusedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/plutonium/interaction/async/executor.rb

Overview

Raised in place of calling perform_on when the just-in-time re-check refuses a target. A StandardError so it travels the same path as a failure raised by the author's own code: a revoked permission is a target failure, and the run's failure policy decides what that means.

Deliberately never rescued BY TYPE — the blanket per-target rescue in #perform_one catches it, which is the point. It exists to name the condition at the raise site and in a log entry. Adding a typed rescue for it would take it out of the failure policy's hands.