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."""