Class: Axn::ContractViolation::NoMatchingExposures
- Inherits:
-
ContractViolation
- Object
- ContractViolation
- Axn::ContractViolation::NoMatchingExposures
- Defined in:
- lib/axn/exceptions.rb
Overview
Like other ContractViolations raised inside call, propagates from call! but surfaces as result.exception under .call.
Instance Method Summary collapse
-
#initialize(declared:, exposed:) ⇒ NoMatchingExposures
constructor
A new instance of NoMatchingExposures.
- #message ⇒ Object
Constructor Details
#initialize(declared:, exposed:) ⇒ NoMatchingExposures
Returns a new instance of NoMatchingExposures.
215 216 217 218 219 |
# File 'lib/axn/exceptions.rb', line 215 def initialize(declared:, exposed:) @declared = declared @exposed = exposed super() end |
Instance Method Details
#message ⇒ Object
221 222 223 224 |
# File 'lib/axn/exceptions.rb', line 221 def "expose(result): the result exposes #{@exposed.inspect} but this action declares " \ "#{@declared.inspect} — no fields in common to forward" end |