Exception: ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Exceptions::ArgumentsChainingIsAlreadySet

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_without_argumentsObject



22
23
24
25
26
27
28
29
30
# File 'lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/exceptions.rb', line 22

def initialize_without_arguments
  message = <<~TEXT
    Arguments chaining is already set.

    Did you use `with_arguments`, `with_any_arguments` or `without_arguments` multiple times? Or a combination of them?
  TEXT

  initialize(message)
end