| Server IP : 104.21.37.246 / Your IP : 104.23.243.33 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/raven/ |
Upload File : |
from __future__ import absolute_import
from raven.utils.compat import text_type
class APIError(Exception):
def __init__(self, message, code=0):
self.code = code
self.message = message
def __unicode__(self):
return text_type("%s: %s" % (self.message, self.code))
class RateLimited(APIError):
def __init__(self, message, retry_after=0):
self.retry_after = retry_after
super(RateLimited, self).__init__(message, 429)
class InvalidGitRepository(Exception):
pass
class ConfigurationError(ValueError):
pass
class InvalidDsn(ConfigurationError):
pass