py-gitea/gitea/exceptions.py

29 wiersze
633 B
Python
Czysty Zwykły widok Historia

2019-07-27 01:11:14 +00:00
class AlreadyExistsException(Exception):
pass
2020-10-14 12:44:05 +00:00
2019-07-27 01:11:14 +00:00
class NotFoundException(Exception):
pass
2020-10-14 12:44:05 +00:00
2019-07-27 01:11:14 +00:00
class ObjectIsInvalid(Exception):
pass
2020-10-14 12:44:05 +00:00
class ConflictException(Exception):
2020-10-14 12:44:05 +00:00
pass
2021-11-16 14:05:06 +00:00
class RawRequestEndpointMissing(Exception):
"""This ApiObject can only be obtained through other api objects and does not have
diret .request method."""
pass
2021-11-16 14:05:06 +00:00
class MissiongEqualyImplementation(Exception):
"""
Each Object obtained from the gitea api must be able to check itself for equality in relation to its
fields obtained from gitea. Risen if an api object is lacking the proper implementation.
"""
pass