class

Mica::Error

Inherits Exception < Reference < Object

Base class of the errors Mica raises for its own failures, in every format: parse, limit, budget, deadline, encoding, query, edit and builder failures. Rescue Mica::Error to handle all of them. Lookups by key follow Crystal's Hash#[] instead: [] raises KeyError for a missing attribute and []? returns nil.