Skip to content

Commit

Permalink
Add another specific error class
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJCLaw authored and lamby committed Jan 15, 2018
1 parent e8f13d2 commit 742569a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions django_slack/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class IsArchived(SlackException):
pass


class FatalError(SlackException):
pass


class MsgTooLong(SlackException):
pass

Expand Down Expand Up @@ -57,6 +61,7 @@ class UserIsBot(SlackException):
LABEL_TO_EXCEPTION = {
'channel_not_found': ChannelNotFound,
'is_archived': IsArchived,
'fatal_error': FatalError,
'msg_too_long': MsgTooLong,
'no_text': NoText,
'rate_limited': RateLimited,
Expand Down

0 comments on commit 742569a

Please sign in to comment.