Class: Axn::ContractViolation::UnknownExposure
- Inherits:
-
ContractViolation
- Object
- ContractViolation
- Axn::ContractViolation::UnknownExposure
- Defined in:
- lib/axn/exceptions.rb
Instance Method Summary collapse
-
#initialize(key) ⇒ UnknownExposure
constructor
A new instance of UnknownExposure.
- #message ⇒ Object
Constructor Details
#initialize(key) ⇒ UnknownExposure
Returns a new instance of UnknownExposure.
205 206 207 208 |
# File 'lib/axn/exceptions.rb', line 205 def initialize(key) @key = key super() end |
Instance Method Details
#message ⇒ Object
210 |
# File 'lib/axn/exceptions.rb', line 210 def = "Attempted to expose unknown key '#{@key}': be sure to declare it with `exposes :#{@key}`" |