airbyte_cdk.sources.streams.concurrent.exceptions

 1#
 2# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
 3#
 4
 5from typing import Any
 6
 7
 8class ExceptionWithDisplayMessage(Exception):
 9    """
10    Exception that can be used to display a custom message to the user.
11    """
12
13    def __init__(self, display_message: str, **kwargs: Any):
14        super().__init__(**kwargs)
15        self.display_message = display_message
16
17    def __str__(self) -> str:
18        return f'ExceptionWithDisplayMessage: "{self.display_message}"'
class ExceptionWithDisplayMessage(builtins.Exception):
 9class ExceptionWithDisplayMessage(Exception):
10    """
11    Exception that can be used to display a custom message to the user.
12    """
13
14    def __init__(self, display_message: str, **kwargs: Any):
15        super().__init__(**kwargs)
16        self.display_message = display_message
17
18    def __str__(self) -> str:
19        return f'ExceptionWithDisplayMessage: "{self.display_message}"'

Exception that can be used to display a custom message to the user.

ExceptionWithDisplayMessage(display_message: str, **kwargs: Any)
14    def __init__(self, display_message: str, **kwargs: Any):
15        super().__init__(**kwargs)
16        self.display_message = display_message
display_message