1
0
mirror of synced 2026-01-03 15:04:01 -05:00
Files
airbyte/airbyte-cdk/python/airbyte_cdk/sources/declarative/parsers/custom_exceptions.py
Cole Snodgrass 2e099acc52 update headers from 2022 -> 2023 (#22594)
* It's 2023!

* 2022 -> 2023

---------

Co-authored-by: evantahler <evan@airbyte.io>
2023-02-08 13:01:16 -08:00

22 lines
522 B
Python

#
# Copyright (c) 2023 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}")