Exception: Callme::Errors::DependencyContractInvalidParametersException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/callme/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(method, parameters) ⇒ DependencyContractInvalidParametersException

Returns a new instance of DependencyContractInvalidParametersException.



14
15
16
17
# File 'lib/callme/errors.rb', line 14

def initialize(method, parameters)
  @method = method
  @parameters = parameters
end

Instance Method Details

#to_sObject



19
20
21
22
# File 'lib/callme/errors.rb', line 19

def to_s
  parameter_names = @parameters.join(', ')
  "The method signature of method: '#{@method}' does not match the contract parameters: '#{parameter_names}'"
end