Exception: Inform::BehaviorError
- Defined in:
- lib/runtime/experimental/handler_dsl.rb
Overview
The BehaviorError class
Constant Summary collapse
- MESSAGE =
'Behavior registry for %<key>s is not a Module (got %<clazz>s)'.freeze
Instance Method Summary collapse
-
#initialize(key, behavior) ⇒ BehaviorError
constructor
A new instance of BehaviorError.
Constructor Details
#initialize(key, behavior) ⇒ BehaviorError
64 65 66 |
# File 'lib/runtime/experimental/handler_dsl.rb', line 64 def initialize(key, behavior) super(format(MESSAGE, key: key, clazz: behavior.class)) end |