Exception: RSchema::Invalid

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

Overview

Indicates that validation has failed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(validation_error) ⇒ Invalid

Returns a new instance of Invalid.


141
142
143
144
# File 'lib/rschema.rb', line 141

def initialize(validation_error)
  super()
  @validation_error = validation_error
end

Instance Attribute Details

#validation_errorObject (readonly)

Returns the value of attribute validation_error


139
140
141
# File 'lib/rschema.rb', line 139

def validation_error
  @validation_error
end