Exception: ISO8601::Errors::InvalidFractions

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

Overview

Raised when the given pattern contains an invalid fraction.

Instance Method Summary collapse

Constructor Details

#initialize(pattern) ⇒ InvalidFractions

Returns a new instance of InvalidFractions.



20
21
22
# File 'lib/iso8601/errors.rb', line 20

def initialize(pattern)
  super("Fractions are only allowed in the last component")
end