Exception: Angus::Remote::PathArgumentError

Inherits:
Exception
  • Object
show all
Defined in:
lib/angus/remote/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(current, expected) ⇒ PathArgumentError

Returns a new instance of PathArgumentError.



49
50
51
52
# File 'lib/angus/remote/exceptions.rb', line 49

def initialize(current, expected)
  @current = current
  @expected = expected
end

Instance Method Details

#messageObject



54
55
56
# File 'lib/angus/remote/exceptions.rb', line 54

def message
  "Wrong number of arguments (#@current for #@expected)"
end