Exception: WebPipe::ConnSupport::MissingMiddlewareError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- WebPipe::ConnSupport::MissingMiddlewareError
- Defined in:
- lib/web_pipe/conn_support/errors.rb
Overview
Error raised when trying to use a WebPipe::Conn feature which requires a rack middleware that is not present
Instance Method Summary collapse
-
#initialize(feature, middleware, gem) ⇒ MissingMiddlewareError
constructor
A new instance of MissingMiddlewareError.
Constructor Details
#initialize(feature, middleware, gem) ⇒ MissingMiddlewareError
Returns a new instance of MissingMiddlewareError.
37 38 39 40 41 42 43 44 |
# File 'lib/web_pipe/conn_support/errors.rb', line 37 def initialize(feature, middleware, gem) super( <<~MSG In order to use #{feature} you must use #{middleware} middleware: https://rubygems.org/gems/#{gem} MSG ) end |