]> projects.mako.cc - twitter-api-cdsw-solutions/blob - tweepy/error.py
753e2fe676cf2f581a9fe032a71d9c4d638cc471
[twitter-api-cdsw-solutions] / tweepy / error.py
1 # Tweepy
2 # Copyright 2009-2010 Joshua Roesslein
3 # See LICENSE for details.
4
5 class TweepError(Exception):
6     """Tweepy exception"""
7
8     def __init__(self, reason, response=None):
9         self.reason = unicode(reason)
10         self.response = response
11         Exception.__init__(self, reason)
12
13     def __str__(self):
14         return self.reason
15

Benjamin Mako Hill || Want to submit a patch?