Exception: Expressir::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/expressir/errors.rb

Overview

Validation Errors

Instance Attribute Summary collapse

Attributes inherited from Error

#details

Instance Method Summary collapse

Constructor Details

#initialize(message, errors: []) ⇒ ValidationError

Returns a new instance of ValidationError.



71
72
73
74
# File 'lib/expressir/errors.rb', line 71

def initialize(message, errors: [])
  @errors = errors
  super(message)
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



69
70
71
# File 'lib/expressir/errors.rb', line 69

def errors
  @errors
end