Exception: JSI::Error::Invalid

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jsi.rb

Overview

A schema instance is not valid against schemas that describe it

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result, *a, &b) ⇒ Invalid

Returns a new instance of Invalid.

Parameters:



52
53
54
55
# File 'lib/jsi.rb', line 52

def initialize(result, *a, &b)
  @result = result
  super(result.pretty_inspect.chomp, *a, &b)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



57
58
59
# File 'lib/jsi.rb', line 57

def result
  @result
end