Exception: Yelp::Error::InvalidParameter

Inherits:
Base
  • Object
show all
Defined in:
lib/yelp/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'One or more parameters were invalid', error = nil) ⇒ InvalidParameter

Returns a new instance of InvalidParameter.



79
80
81
82
# File 'lib/yelp/error.rb', line 79

def initialize(msg='One or more parameters were invalid', error=nil)
  msg = msg + ': ' + error['field'] unless error.nil?
  super
end