Exception: ISO8601::Errors::DurationBaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/iso8601/errors.rb

Overview

Raise when the base is not suitable.

Instance Method Summary collapse

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