How to use the fastly.errors.FastlyError function in fastly

To help you get started, we’ve selected a few fastly examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fastly / fastly-py / fastly / errors.py View on Github external
"""
"""

class FastlyError(Exception):
    pass

class AuthenticationError(FastlyError):
    pass

class InternalServerError(FastlyError):
    pass

class BadRequestError(FastlyError):
    def __init__(self, reason):
        self.reason = reason

    def __str__(self):
        return repr(self.reason)

class NotFoundError(FastlyError):
    pass
github fastly / fastly-py / fastly / errors.py View on Github external
"""
"""

class FastlyError(Exception):
    pass

class AuthenticationError(FastlyError):
    pass

class InternalServerError(FastlyError):
    pass

class BadRequestError(FastlyError):
    def __init__(self, reason):
        self.reason = reason

    def __str__(self):
        return repr(self.reason)

class NotFoundError(FastlyError):
    pass
github fastly / fastly-py / fastly / errors.py View on Github external
"""
"""

class FastlyError(Exception):
    pass

class AuthenticationError(FastlyError):
    pass

class InternalServerError(FastlyError):
    pass

class BadRequestError(FastlyError):
    def __init__(self, reason):
        self.reason = reason

    def __str__(self):
        return repr(self.reason)

class NotFoundError(FastlyError):
    pass
github fastly / fastly-py / fastly / errors.py View on Github external
pass

class AuthenticationError(FastlyError):
    pass

class InternalServerError(FastlyError):
    pass

class BadRequestError(FastlyError):
    def __init__(self, reason):
        self.reason = reason

    def __str__(self):
        return repr(self.reason)

class NotFoundError(FastlyError):
    pass