Exception: Axn::ContractViolation::UnknownExposure
- Inherits:
-
Axn::ContractViolation
- Object
- StandardError
- Axn::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.
49 50 51 52 |
# File 'lib/axn/exceptions.rb', line 49 def initialize(key) @key = key super() end |
Instance Method Details
#message ⇒ Object
54 |
# File 'lib/axn/exceptions.rb', line 54 def = "Attempted to expose unknown key '#{@key}': be sure to declare it with `exposes :#{@key}`" |