Exception: TimeInterval::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- TimeInterval::ParseError
- Defined in:
- lib/timeinterval.rb
Overview
Is raised if a String cannot be converted to some representation of TimeInterval.
TimeInterval.new( {:hour => '42', :min => '23'} )
=> #<TimeInterval:0x505c565c @hour="42", @sec=0, @min="23">
TimeInterval.new('invalid')
=> TimeInterval::ParseError: Could not parse interval 'invalid'