Exception: Avro::SchemaValidator::ValidationError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result = Result.new) ⇒ ValidationError

Returns a new instance of ValidationError.



53
54
55
56
# File 'lib/avro-patches/schema_validator/schema_validator.rb', line 53

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

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



51
52
53
# File 'lib/avro-patches/schema_validator/schema_validator.rb', line 51

def result
  @result
end

Instance Method Details

#to_sObject



58
59
60
# File 'lib/avro-patches/schema_validator/schema_validator.rb', line 58

def to_s
  result.to_s
end