Exception: ConvenientService::Service::Plugins::CanHaveConnectedSteps::Exceptions::ElseWithoutIf Private

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/can_have_connected_steps/exceptions.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(container:, method:) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

Since:

  • 1.0.0



107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/exceptions.rb', line 107

def initialize_with_kwargs(container:, method:)
  printable_container = Utils::Class.display_name(container)

  message = "    First step of `\#{method}` from `\#{printable_container}` is NOT set.\n\n    Did you forget to use `step`? For example:\n\n    class \#{printable_container}\n      # ...\n\n      \#{method} SomeService do\n        step SomeOtherService\n\n        # ...\n      end\n\n      # ...\n    end\n  TEXT\n\n  initialize(message)\nend\n"