Exception: HaveAPI::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/haveapi/params.rb

Instance Method Summary collapse

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_hashObject



11
12
13
# File 'lib/haveapi/params.rb', line 11

def to_hash
  @errors
end