Exception: Holoserve::Pair::Validator::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Holoserve::Pair::Validator::Error
show all
- Defined in:
- lib/holoserve/pair/validator.rb
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
#inspect ⇒ Object
16
17
18
|
# File 'lib/holoserve/pair/validator.rb', line 16
def inspect
"#{self.class}\n " + @errors.join("\n ")
end
|
#to_s ⇒ Object
12
13
14
|
# File 'lib/holoserve/pair/validator.rb', line 12
def to_s
"<#{self.class} error count = #{@errors.size}>"
end
|