Exception: Familia::SchemaValidationError
- Inherits:
-
HorreumError
- Object
- RuntimeError
- Problem
- HorreumError
- Familia::SchemaValidationError
- Defined in:
- lib/familia/schema_registry.rb
Overview
Error raised when schema validation fails
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ SchemaValidationError
constructor
A new instance of SchemaValidationError.
Constructor Details
#initialize(errors) ⇒ SchemaValidationError
Returns a new instance of SchemaValidationError.
159 160 161 162 163 |
# File 'lib/familia/schema_registry.rb', line 159 def initialize(errors) @errors = errors = errors.map { |e| format_error(e) }.first(3) super("Schema validation failed: #{.join('; ')}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
157 158 159 |
# File 'lib/familia/schema_registry.rb', line 157 def errors @errors end |