]> projects.mako.cc - twitter-api-cdsw/blob - tweepy/error.py
initial version of several example programs using the tweepy twitter API
[twitter-api-cdsw] / 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?