Exception: Dry::Protocol::NotProtocol
- Inherits:
-
StandardError
- Object
- StandardError
- Dry::Protocol::NotProtocol
- Defined in:
- lib/dry/errors/not_protocol.rb
Instance Method Summary collapse
-
#initialize(suspect) ⇒ NotProtocol
constructor
A new instance of NotProtocol.
Constructor Details
#initialize(suspect) ⇒ NotProtocol
Returns a new instance of NotProtocol.
4 5 6 |
# File 'lib/dry/errors/not_protocol.rb', line 4 def initialize(suspect) super "“#{suspect.inspect}” is not a protocol." end |