1
0
mirror of synced 2026-01-18 06:04:45 -05:00
Files
airbyte/airbyte-cdk/python/airbyte_cdk/sources/declarative/parsers/custom_exceptions.py
Catherine Noll 74dec837fc [Low-Code CDK] Handle forward references in manifest (#20893)
[Low-Code CDK] Handle forward references in manifest
2023-01-11 08:50:37 -05:00

22 lines
522 B
Python

#
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#
class CircularReferenceException(Exception):
"""
Raised when a circular reference is detected in a manifest.
"""
def __init__(self, reference):
super().__init__(f"Circular reference found: {reference}")
class UndefinedReferenceException(Exception):
"""
Raised when refering to an undefined reference.
"""
def __init__(self, path, reference):
super().__init__(f"Undefined reference {reference} from {path}")