Exception: SlackbotFrd::NoTokenError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/slackbot_frd/lib/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ NoTokenError

Returns a new instance of NoTokenError.



4
5
6
7
8
9
10
# File 'lib/slackbot_frd/lib/errors.rb', line 4

def initialize(message = nil)
  if message
    super(message)
  else
    super('An API token is required for authenticating to the Slack API')
  end
end