cr-connect-workflow/crc/services/failing_service.py

12 lines
242 B
Python
Raw Normal View History

from crc.api.common import ApiError
class FailingService(object):
@staticmethod
def fail_as_service():
"""It fails"""
raise ApiError(code='bad_service',
message='This is my failing service')