Exception: ZeroRuby::ValidationError
- Defined in:
- lib/zero_ruby/errors.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
Methods inherited from Error
Constructor Details
#initialize(errors) ⇒ ValidationError
Returns a new instance of ValidationError.
21 22 23 24 |
# File 'lib/zero_ruby/errors.rb', line 21 def initialize(errors) @errors = Array(errors) super(@errors.join(", ")) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
19 20 21 |
# File 'lib/zero_ruby/errors.rb', line 19 def errors @errors end |