[go: up one dir, main page]

aboutsummaryrefslogblamecommitdiffstats
path: root/pygithub3/exceptions.py
blob: c44c3716be13d57f9d121d89d179a9d626bca804 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                         





                                                                      































                                                                           
#!/usr/bin/env python
# -*- encoding: utf-8 -*-


class InvalidBodySchema(Exception):
    """ Raised when the 'valids_body' attribute of Resource isn't in a
    valid form (required.issubsetof(schema))"""
    pass


class DoesNotExists(Exception):
    """ Raised when `Request` factory can't find the subclass """
    pass


class UriInvalid(Exception):
    """ Raised when `Request` factory's maker isn't in a valid form """
    pass


class ValidationError(Exception):
    """ Raised when a `Request` doesn't have the necessary args to make a
    valid URI """
    pass


class BadRequest(Exception):
    """ Raised when server response is 400 """
    pass


class UnprocessableEntity(Exception):
    """ Raised when server response is 400 """
    pass


class NotFound(Exception):
    """ Raised when server response is 404

    Catched with a pygithub3-exception to `services.base.Base._bool` method
    """
    pass