Exception: HaveAPI::ValidationError
- Inherits:
-
Exception
- Object
- Exception
- HaveAPI::ValidationError
- Defined in:
- lib/haveapi/params.rb
Instance Method Summary collapse
-
#initialize(msg, errors = {}) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #message ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize(msg, errors = {}) ⇒ ValidationError
Returns a new instance of ValidationError.
7 8 9 10 |
# File 'lib/haveapi/params.rb', line 7 def initialize(msg, errors = {}) @msg = msg @errors = errors end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/haveapi/params.rb', line 12 def @msg end |
#to_hash ⇒ Object
16 17 18 |
# File 'lib/haveapi/params.rb', line 16 def to_hash @errors end |