Exception: Dreck::GreedyAbsorptionError

Inherits:
DreckError
  • Object
show all
Defined in:
lib/dreck/exceptions.rb

Overview

Raised during argument absorption if a greedy list was expected but all arguments have already been absorbed.

Instance Method Summary collapse

Constructor Details

#initialize(specified, supplied) ⇒ GreedyAbsorptionError

Returns a new instance of GreedyAbsorptionError.

Parameters:

  • specified (Integer)

    the number of arguments specified

  • supplied (Integer)

    the number of arguments supplied


29
30
31
# File 'lib/dreck/exceptions.rb', line 29

def initialize(specified, supplied)
  super "too few arguments given (#{specified}, expected >#{supplied})"
end