From 78f8ceb1db5638e32acb649efafeefcf00da95bd Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Thu, 26 Feb 2026 12:40:04 +0000 Subject: [PATCH] feat(infrahub): add Infrahub client for fabric intent (#42) --- src/infrahub_client/exceptions.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/infrahub_client/exceptions.py diff --git a/src/infrahub_client/exceptions.py b/src/infrahub_client/exceptions.py new file mode 100644 index 0000000..ad1c713 --- /dev/null +++ b/src/infrahub_client/exceptions.py @@ -0,0 +1,17 @@ +"""Exception hierarchy for the Infrahub fabric intent client.""" + + +class InfrahubClientError(Exception): + """Base exception for all Infrahub client errors.""" + + +class InfrahubConnectionError(InfrahubClientError): + """Raised when the client cannot connect to the Infrahub server.""" + + +class InfrahubQueryError(InfrahubClientError): + """Raised when a query to the Infrahub server fails.""" + + +class InfrahubNotFoundError(InfrahubClientError): + """Raised when a requested resource is not found in Infrahub."""