Skip to content

Commit

Permalink
organize
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Dec 5, 2022
1 parent 4e1c346 commit 0d447b3
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions core/dbt/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,18 @@ class DuplicateYamlKeyException(CompilationException):
pass


class ConnectionException(Exception):
"""
There was a problem with the connection that returned a bad response,
timed out, or resulted in a file that is corrupt.
"""

pass


# TODO: these are all the functins that need to be converted and deprecated


# TODO: this was copied into jinja_exxceptions because it's in the context - eventually remove?
def raise_compiler_error(msg, node=None) -> NoReturn:
raise CompilationException(msg, node)
Expand Down Expand Up @@ -691,15 +703,6 @@ def system_error(operation_name):
)


class ConnectionException(Exception):
"""
There was a problem with the connection that returned a bad response,
timed out, or resulted in a file that is corrupt.
"""

pass


def multiple_matching_relations(kwargs, matches):
raise_compiler_error(
"get_relation returned more than one relation with the given args. "
Expand Down

0 comments on commit 0d447b3

Please sign in to comment.