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.



64
65
66
# File 'app/models/xhive/mapper.rb', line 64

def initialize(name)
  @name = name
end

Instance Method Details

#messageObject



68
69
70
# File 'app/models/xhive/mapper.rb', line 68

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