Exception: Portage::Ucp::ConfirmationDeniedError
- Defined in:
- lib/portage/ucp/errors.rb
Overview
Raised by a Confirmer (docs/plans/agentic-payments.md Phase 3) when a
payment-completing dispatch isn't approved — explicit "n", a timeout,
or an async transport's own deny. Same reason/decision shape as
PolicyViolationError above, for the same reasons: a stable symbol to
branch on, and a decision Dispatcher persists onto the Phase 0
transaction record via confirmation_outcome.
Instance Attribute Summary collapse
-
#decision ⇒ Object
readonly
Returns the value of attribute decision.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(message, reason:, decision:) ⇒ ConfirmationDeniedError
constructor
A new instance of ConfirmationDeniedError.
Constructor Details
#initialize(message, reason:, decision:) ⇒ ConfirmationDeniedError
Returns a new instance of ConfirmationDeniedError.
84 85 86 87 88 |
# File 'lib/portage/ucp/errors.rb', line 84 def initialize(, reason:, decision:) super() @reason = reason @decision = decision end |
Instance Attribute Details
#decision ⇒ Object (readonly)
Returns the value of attribute decision.
82 83 84 |
# File 'lib/portage/ucp/errors.rb', line 82 def decision @decision end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
82 83 84 |
# File 'lib/portage/ucp/errors.rb', line 82 def reason @reason end |