Exception: Inform::BehaviorError

Inherits:
TypeError
  • Object
show all
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

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