Exception: SlackBot::Errors::UnknownActionTypeError

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(action_type) ⇒ UnknownActionTypeError

Returns a new instance of UnknownActionTypeError.

Parameters:

  • action_type (String)


83
84
85
86
# File 'lib/slack_bot/errors.rb', line 83

def initialize(action_type)
  @action_type = action_type
  super("Unknown action type: #{action_type}")
end

Instance Attribute Details

#action_typeString (readonly)

Returns the value of attribute action_type.

Returns:

  • (String)


82
83
84
# File 'lib/slack_bot/errors.rb', line 82

def action_type
  @action_type
end