Skip to content

ShapeError

Supertype of errors where items are missing or unexpected, in a call's arguments or a destructured value.

Binding arguments and destructuring share one mechanism, so def f x y, bind args, and let a b = parts all raise the same errors. ShapeError is abstract: catch it, but construct or subclass one of its concrete subtypes.

Inherits from: RuntimeError