Exception: Portage::Ucp::ConfirmationDeniedError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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(message, reason:, decision:)
  super(message)
  @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