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.



61
62
63
64
# File 'lib/avro/schema_validator.rb', line 61

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

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



59
60
61
# File 'lib/avro/schema_validator.rb', line 59

def result
  @result
end

Instance Method Details

#to_sObject



66
67
68
# File 'lib/avro/schema_validator.rb', line 66

def to_s
  result.to_s
end