Exception: Lyra::Schema::SchemaValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/lyra/schema/validator.rb

Overview

Custom error for schema validation failures

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, differences = []) ⇒ SchemaValidationError

Returns a new instance of SchemaValidationError.



79
80
81
82
# File 'lib/lyra/schema/validator.rb', line 79

def initialize(message, differences = [])
  @differences = differences
  super(build_message(message))
end

Instance Attribute Details

#differences ⇒ Object (readonly)

Returns the value of attribute differences.



77
78
79
# File 'lib/lyra/schema/validator.rb', line 77

def differences
  @differences
end