Exception: Yelp::Error::InvalidParameter
- Defined in:
- lib/yelp/error.rb
Instance Method Summary collapse
-
#initialize(msg = 'One or more parameters were invalid', error = nil) ⇒ InvalidParameter
constructor
A new instance of InvalidParameter.
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 |