Exception: Coradoc::ValidationError
- Defined in:
- lib/coradoc/errors.rb
Overview
Error raised when validation fails
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(message, errors: []) ⇒ ValidationError
constructor
Create a new validation error.
Constructor Details
#initialize(message, errors: []) ⇒ ValidationError
Create a new validation error
229 230 231 232 |
# File 'lib/coradoc/errors.rb', line 229 def initialize(, errors: []) @errors = errors super(()) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
223 224 225 |
# File 'lib/coradoc/errors.rb', line 223 def errors @errors end |