Exception: SyncwiseApi::Errors::InvalidParameters
- Inherits:
-
SyncwiseError
- Object
- StandardError
- SyncwiseError
- SyncwiseApi::Errors::InvalidParameters
- Defined in:
- lib/syncwise_api/errors.rb
Instance Attribute Summary collapse
-
#passed_params ⇒ Object
readonly
Returns the value of attribute passed_params.
-
#request_type ⇒ Object
readonly
Returns the value of attribute request_type.
-
#required_params ⇒ Object
readonly
Returns the value of attribute required_params.
Instance Method Summary collapse
-
#initialize(request_type, passed_params, required_params) ⇒ InvalidParameters
constructor
A new instance of InvalidParameters.
Constructor Details
#initialize(request_type, passed_params, required_params) ⇒ InvalidParameters
Returns a new instance of InvalidParameters.
20 21 22 23 24 25 |
# File 'lib/syncwise_api/errors.rb', line 20 def initialize(request_type, passed_params, required_params) @request_type = request_type @passed_params = passed_params @required_params = required_params super("#{@request_type} was called with params #{@passed_params}, but requires params #{@required_params}") end |
Instance Attribute Details
#passed_params ⇒ Object (readonly)
Returns the value of attribute passed_params.
27 28 29 |
# File 'lib/syncwise_api/errors.rb', line 27 def passed_params @passed_params end |
#request_type ⇒ Object (readonly)
Returns the value of attribute request_type.
27 28 29 |
# File 'lib/syncwise_api/errors.rb', line 27 def request_type @request_type end |
#required_params ⇒ Object (readonly)
Returns the value of attribute required_params.
27 28 29 |
# File 'lib/syncwise_api/errors.rb', line 27 def required_params @required_params end |