class UCL::Error::SchemaError

Overview

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.

Defined in:

ucl/error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(message : String | Nil = nil, code : UCL::LibUCL::SchemaErrorCode | Nil = nil) #

[View source]

Instance Method Detail

def code : UCL::LibUCL::SchemaErrorCode | Nil #

[View source]