Exception: Holoserve::Pair::Validator::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/holoserve/pair/validator.rb

Direct Known Subclasses

InvalidError, InvalidSchemaError

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ Error

Returns a new instance of Error.



8
9
10
# File 'lib/holoserve/pair/validator.rb', line 8

def initialize(errors)
  @errors = errors
end

Instance Method Details

#inspectObject



16
17
18
# File 'lib/holoserve/pair/validator.rb', line 16

def inspect
  "#{self.class}\n  " + @errors.join("\n  ")
end

#to_sObject



12
13
14
# File 'lib/holoserve/pair/validator.rb', line 12

def to_s
  "<#{self.class} error count = #{@errors.size}>"
end