Exception: Avro::SchemaValidator::ValidationError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result = Result.new) ⇒ ValidationError

Returns a new instance of ValidationError.



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

def initialize(result = Result.new)
  @result = result
  super
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



50
51
52
# File 'lib/avro/schema_validator.rb', line 50

def result
  @result
end

Instance Method Details

#to_sObject



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

def to_s
  result.to_s
end