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 = {}) = 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 end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/haveapi/params.rb', line 14 def HaveAPI.localize() end |
#to_hash ⇒ Object
22 23 24 |
# File 'lib/haveapi/params.rb', line 22 def to_hash @errors end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/haveapi/params.rb', line 18 def to_s end |