Exception: EasyPost::Errors::InvalidParameterError
- Inherits:
-
EasyPostError
- Object
- StandardError
- EasyPostError
- EasyPost::Errors::InvalidParameterError
- Defined in:
- lib/easypost/errors/invalid_parameter_error.rb
Instance Method Summary collapse
-
#initialize(parameter, suggestion = nil) ⇒ InvalidParameterError
constructor
A new instance of InvalidParameterError.
Methods inherited from EasyPostError
Constructor Details
#initialize(parameter, suggestion = nil) ⇒ InvalidParameterError
Returns a new instance of InvalidParameterError.
8 9 10 |
# File 'lib/easypost/errors/invalid_parameter_error.rb', line 8 def initialize(parameter, suggestion = nil) super EasyPost::Constants::INVALID_PARAMETER % parameter + (suggestion.nil? ? '' : " #{suggestion}") end |