Class: Axn::ContractViolation::UnknownExposure

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

Instance Method Summary collapse

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

#messageObject



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

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