Exception: Xhive::Mapper::InvalidPolicyError

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/xhive/mapper.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ InvalidPolicyError

Returns a new instance of InvalidPolicyError.



82
83
84
# File 'app/models/xhive/mapper.rb', line 82

def initialize(name)
  @name = name
end

Instance Method Details

#messageObject



86
87
88
# File 'app/models/xhive/mapper.rb', line 86

def message
  "#{@name} must implement a ::call method"
end