PHP 8.2.30
Preview: exceptions.py Size: 620 B
//proc/thread-self/root/proc/self/root/opt/alt/python37/lib/python3.7/site-packages/raven/exceptions.py

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

Directory Contents

Dirs: 7 × Files: 9

Name Size Perms Modified Actions
conf DIR
- drwxr-xr-x 2024-03-03 23:10:23
Edit Download
contrib DIR
- drwxr-xr-x 2024-03-03 23:10:23
Edit Download
handlers DIR
- drwxr-xr-x 2024-03-03 23:10:23
Edit Download
scripts DIR
- drwxr-xr-x 2024-03-03 23:10:23
Edit Download
transport DIR
- drwxr-xr-x 2024-03-03 23:10:23
Edit Download
utils DIR
- drwxr-xr-x 2024-03-03 23:10:23
Edit Download
- drwxr-xr-x 2024-03-03 23:10:23
Edit Download
29.21 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
11.27 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
3.68 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
4.56 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
620 B lrw-r--r-- 2017-10-29 17:41:19
Edit Download
3.51 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
4.18 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
2.54 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
1.28 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).