Exception: SlackBot::Errors::HandlerClassNotFound

Inherits:
SlackBot::Error
  • Object
show all
Defined in:
lib/slack_bot/errors.rb,
sig/slack_bot.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(class_name, handler_classes:) ⇒ HandlerClassNotFound

Returns a new instance of HandlerClassNotFound.

Parameters:

  • class_name (String)
  • handler_classes: (Hash[Symbol, Class])


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_nameString (readonly)

Returns the value of attribute class_name.

Returns:

  • (String)


31
32
33
# File 'lib/slack_bot/errors.rb', line 31

def class_name
  @class_name
end

#handler_classesHash[Symbol, Class] (readonly)

Returns the value of attribute handler_classes.

Returns:

  • (Hash[Symbol, Class])


31
32
33
# File 'lib/slack_bot/errors.rb', line 31

def handler_classes
  @handler_classes
end