Exception: Axn::ContractViolation::UnknownExposure

Inherits:
Axn::ContractViolation show all
Defined in:
lib/axn/exceptions.rb

Instance Method Summary collapse

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

#messageObject



54
# File 'lib/axn/exceptions.rb', line 54

def message = "Attempted to expose unknown key '#{@key}': be sure to declare it with `exposes :#{@key}`"