Ai
3 Star 0 Fork 0

Gitee 极速下载/raven-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/getsentry/raven-python
克隆/下载
exceptions.py 620 Bytes
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/raven-python.git
git@gitee.com:mirrors/raven-python.git
mirrors
raven-python
raven-python
master

搜索帮助