This introduces some specific errors: ArgumentError and OpeningHoursConverter::ParseError
The latter can be used by callers and users of the lib to catch.
Currently we cannot catch errors in a nice and clean way; and parsing often goes wrong: there's loads of edgecases, not yet implemented features, or simply broken open_hours in OSM which will cause the parser to break now.
Allowing upstream to catch those makes the lib easier to use.
This introduces some specific errors: ArgumentError and OpeningHoursConverter::ParseError
The latter can be used by callers and users of the lib to catch.
Currently we cannot catch errors in a nice and clean way; and parsing often goes wrong: there's loads of edgecases, not yet implemented features, or simply broken open_hours in OSM which will cause the parser to break now.
Allowing upstream to catch those makes the lib easier to use.