feat(infrahub): add Infrahub client for fabric intent (#42) #19
17
src/infrahub_client/exceptions.py
Normal file
17
src/infrahub_client/exceptions.py
Normal file
@@ -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."""
|
||||
Reference in New Issue
Block a user