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