Exception: Trigv::ValidationError
- Defined in:
- lib/trigv/errors.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(message, errors = {}) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message, errors = {}) ⇒ ValidationError
Returns a new instance of ValidationError.
13 14 15 16 |
# File 'lib/trigv/errors.rb', line 13 def initialize(, errors = {}) super() @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
11 12 13 |
# File 'lib/trigv/errors.rb', line 11 def errors @errors end |