Co-authored-by: girarda <girarda@users.noreply.github.com> Co-authored-by: Maxime Carbonneau-Leclerc <maxi297@users.noreply.github.com> Co-authored-by: Catherine Noll <clnoll@users.noreply.github.com>
16 lines
365 B
Python
16 lines
365 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
|