Exception: Dreck::AbsorptionError
- Inherits:
-
DreckError
- Object
- RuntimeError
- DreckError
- Dreck::AbsorptionError
- Defined in:
- lib/dreck/exceptions.rb
Overview
Raised during argument absorption if arguments are either left over or are insufficient to populate the expected results.
Instance Method Summary collapse
-
#initialize(specified, supplied) ⇒ AbsorptionError
constructor
A new instance of AbsorptionError.
Constructor Details
#initialize(specified, supplied) ⇒ AbsorptionError
Returns a new instance of AbsorptionError.
18 19 20 21 |
# File 'lib/dreck/exceptions.rb', line 18 def initialize(specified, supplied) nmany = specified < supplied ? "too many" : "too few" super "#{nmany} arguments given (#{supplied}, expected #{specified})" end |