Exception: Callme::Errors::DependencyContractInvalidParametersException
- Inherits:
-
StandardError
- Object
- StandardError
- Callme::Errors::DependencyContractInvalidParametersException
- Defined in:
- lib/callme/errors.rb
Instance Method Summary collapse
-
#initialize(method, parameters) ⇒ DependencyContractInvalidParametersException
constructor
A new instance of DependencyContractInvalidParametersException.
- #to_s ⇒ Object
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_s ⇒ Object
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 |