Exception: Servus::Schema::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Servus::Schema::Error
- Defined in:
- lib/servus/schema/errors.rb
Overview
Base class for every schema registry and compilation error.
These deliberately do not inherit from Servus::Support::Errors::ServiceError.
Everything in that hierarchy carries an #http_status and an #api_error
because it describes a business outcome a caller might render. A malformed
$ref or an unregistered fragment key is a programming error in the schema
itself — there is no sensible HTTP status for it, and rescuing it would
reintroduce exactly the silent non-validation this design exists to prevent.
Direct Known Subclasses
CircularReferenceError, DepthExceededError, InvalidKeyError, InvalidRefError, RefNotFoundError, UnknownKeyError