class

UCL::Error::SchemaError

Inherits UCL::Error::BaseError < Exception < Reference < Object

Raised by UCL::Validator when data does not conform to the schema.

#code carries the underlying libucl SchemaErrorCode (e.g. UCL_SCHEMA_TYPE_MISMATCH) for programmatic handling, when available.

Constructors

new(message : String | Nil = nil, code : UCL::LibUCL::SchemaErrorCode | Nil = nil)
Source

Instance methods

code
Source