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


35
36
37
# File 'lib/iso8601/errors.rb', line 35

def initialize(duration)
  super("Wrong base for #{duration} duration.")
end