Exception: Duckling::ShapeError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/duckling.rb

Overview

Raised when the serialized :time :value shape drifts from the typed walk in ext/duckling/src/lib.rs's patch_time_value/patch_time_point — a wrapper bug. Deliberately a RuntimeError subclass (not ArgumentError) so a caller rescuing ArgumentError around bad locale:/reference_zone: input can't swallow it, and a named one (not bare RuntimeError) so it's greppable and can't be satisfied by the unrelated native-panic RuntimeError. Mirrors the internal_error() class in lib.rs.