Exception: SlackBot::Errors::HandlerClassNotFound
- Inherits:
-
SlackBot::Error
- Object
- StandardError
- SlackBot::Error
- SlackBot::Errors::HandlerClassNotFound
- Defined in:
- lib/slack_bot/errors.rb,
sig/slack_bot.rbs
Instance Attribute Summary collapse
-
#class_name ⇒ String
readonly
Returns the value of attribute class_name.
-
#handler_classes ⇒ Hash[Symbol, Class]
readonly
Returns the value of attribute handler_classes.
Instance Method Summary collapse
-
#initialize(class_name, handler_classes:) ⇒ HandlerClassNotFound
constructor
A new instance of HandlerClassNotFound.
Constructor Details
#initialize(class_name, handler_classes:) ⇒ HandlerClassNotFound
Returns a new instance of HandlerClassNotFound.
32 33 34 35 36 37 |
# File 'lib/slack_bot/errors.rb', line 32 def initialize(class_name, handler_classes:) @class_name = class_name @handler_classes = handler_classes super("Handler class not found for #{class_name}") end |
Instance Attribute Details
#class_name ⇒ String (readonly)
Returns the value of attribute class_name.
31 32 33 |
# File 'lib/slack_bot/errors.rb', line 31 def class_name @class_name end |
#handler_classes ⇒ Hash[Symbol, Class] (readonly)
Returns the value of attribute handler_classes.
31 32 33 |
# File 'lib/slack_bot/errors.rb', line 31 def handler_classes @handler_classes end |