Exception: SyncwiseApi::Errors::InvalidParameters

Inherits:
SyncwiseError show all
Defined in:
lib/syncwise_api/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_paramsObject (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_typeObject (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_paramsObject (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