Exception: Schema::SchemaException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/schema-model.rb

Direct Known Subclasses

ParsingException, ValidationException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, schema, errors) ⇒ SchemaException

Returns a new instance of SchemaException.



11
12
13
14
15
# File 'lib/schema-model.rb', line 11

def initialize(msg, schema, errors)
  super(msg)
  @schema = schema
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



8
9
10
# File 'lib/schema-model.rb', line 8

def errors
  @errors
end

#schemaObject (readonly)

Returns the value of attribute schema.



8
9
10
# File 'lib/schema-model.rb', line 8

def schema
  @schema
end