Exception: SlackBot::Errors::HandlerClassNotFound

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(class_name, handler_classes:) ⇒ HandlerClassNotFound

Returns a new instance of HandlerClassNotFound.



26
27
28
29
30
31
# File 'lib/slack_bot/errors.rb', line 26

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

Returns the value of attribute class_name.



25
26
27
# File 'lib/slack_bot/errors.rb', line 25

def class_name
  @class_name
end

#handler_classesObject (readonly)

Returns the value of attribute handler_classes.



25
26
27
# File 'lib/slack_bot/errors.rb', line 25

def handler_classes
  @handler_classes
end