class SlackError(Exception):
    pass

class SlackNo(SlackError):
    def __init__(self, msg_error):
        self.msg = msg_error

    def __str__(self):
        return repr(self.msg)

class SlackTooManyRequests(SlackError):
    def __init__(self, time_to_wait):
        self.time_to_wait = time_to_wait

    def __str__(self):
        return ("Too many requests. Wait %d seconds before trying again" \
                % (self.time_to_wait))

class SlackError(Exception):
    pass

class SlackNo(SlackError):
    pass

class SlackMissingAPI(SlackError):
    pass

Add a custom exception (SlackMissingAPI)
Add a custom exception (SlackMissingAPI)

This exception is raised when a SlackObject is created without
any way to get an API.

Remove custom implementation for exceptions. There is no reason strong
enough for this.

  class SlackError(Exception):
      pass
  
  class SlackNo(SlackError):
+     pass
-     def __init__(self, msg_error):
-         self.msg = msg_error
  
-     def __str__(self):
-         return repr(self.msg)
+ class SlackMissingAPI(SlackError):
+     pass
  
- class SlackTooManyRequests(SlackError):
-     def __init__(self, time_to_wait):
-         self.time_to_wait = time_to_wait
- 
-     def __str__(self):
-         return ("Too many requests. Wait %d seconds before trying again" \
-                 % (self.time_to_wait))
- 
Add a custom exception (SlackMissingAPI)
## Code Before:
class SlackError(Exception):
    pass

class SlackNo(SlackError):
    def __init__(self, msg_error):
        self.msg = msg_error

    def __str__(self):
        return repr(self.msg)

class SlackTooManyRequests(SlackError):
    def __init__(self, time_to_wait):
        self.time_to_wait = time_to_wait

    def __str__(self):
        return ("Too many requests. Wait %d seconds before trying again" \
                % (self.time_to_wait))

## Instruction:
Add a custom exception (SlackMissingAPI)
## Code After:
class SlackError(Exception):
    pass

class SlackNo(SlackError):
    pass

class SlackMissingAPI(SlackError):
    pass
