Exception: HaveAPI::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- HaveAPI::ValidationError
- Defined in:
- lib/haveapi/params.rb
Instance Attribute Summary collapse
-
#message_value ⇒ Object
readonly
Returns the value of attribute message_value.
Instance Method Summary collapse
-
#initialize(msg, errors = {}) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #message ⇒ Object
- #to_hash ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(msg, errors = {}) ⇒ ValidationError
Returns a new instance of ValidationError.
8 9 10 11 12 |
# File 'lib/haveapi/params.rb', line 8 def initialize(msg, errors = {}) @message_value = msg super(msg) @errors = errors end |
Instance Attribute Details
#message_value ⇒ Object (readonly)
Returns the value of attribute message_value.
6 7 8 |
# File 'lib/haveapi/params.rb', line 6 def @message_value end |