Exception: WebPipe::Plug::InvalidPlugError Private

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/web_pipe/plug.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.

Raised when the specification for an operation is invalid.

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ InvalidPlugError

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.

Returns a new instance of InvalidPlugError.



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/web_pipe/plug.rb', line 12

def initialize(name)
  super(
    <<~MSG
      Plug with name +#{name}+ can't be resolved. You must provide
      something responding to `#call` or `#to_proc`, or a key for
      something registered in the container obeying those exact
      constraints. If nothing is given, it's expected to be a method
      defined in the context object.
    MSG
  )
end