Files
fm-orchestrator/module_build_service/common/errors.py
Brendan Reilly 4a30847bea Remove Greenwave Code
No implementations of MBS are using Greenwave, and there are no current plans
to do so. Koji Resolver will be sufficient for any usecase dependent on gating.
2022-03-30 14:27:34 -04:00

42 lines
612 B
Python

# -*- coding: utf-8 -*-
# SPDX-License-Identifier: MIT
""" Defines custom exceptions and error handling functions """
from __future__ import absolute_import
class ValidationError(ValueError):
pass
class Unauthorized(ValueError):
pass
class Forbidden(ValueError):
pass
class UnprocessableEntity(ValueError):
pass
class Conflict(ValueError):
pass
class NotFound(ValueError):
pass
class ProgrammingError(ValueError):
pass
class StreamAmbigous(ValueError):
pass
class IgnoreMessage(Exception):
"""Raise if message received from message bus should be ignored"""