Exception: ISO8601::Errors::DurationBaseError
- Inherits:
-
StandardError
- Object
- StandardError
- StandardError
- ISO8601::Errors::DurationBaseError
- Defined in:
- lib/iso8601/errors.rb
Overview
Raise when the base is not suitable.
Instance Method Summary collapse
-
#initialize(duration) ⇒ DurationBaseError
constructor
A new instance of DurationBaseError.
Constructor Details
#initialize(duration) ⇒ DurationBaseError
Returns a new instance of DurationBaseError.
49 50 51 |
# File 'lib/iso8601/errors.rb', line 49 def initialize(duration) super("Wrong base for #{duration} duration.") end |