1
0
mirror of synced 2026-01-20 12:07:14 -05:00
Files
airbyte/airbyte-cdk/python/airbyte_cdk/sources/streams/concurrent/exceptions.py

19 lines
468 B
Python

#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from typing import Any
class ExceptionWithDisplayMessage(Exception):
"""
Exception that can be used to display a custom message to the user.
"""
def __init__(self, display_message: str, **kwargs: Any):
super().__init__(**kwargs)
self.display_message = display_message
def __str__(self) -> str:
return f'ExceptionWithDisplayMessage: "{self.display_message}"'