Skip to content

Commit 35b4524

Browse files
Fix: Apply Black formatting
1 parent 7075531 commit 35b4524

File tree

4 files changed

+20
-136
lines changed

4 files changed

+20
-136
lines changed

sdks/python/exceptions.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class HatchetError(Exception):
2+
"""Base exception for Hatchet Python SDK."""
3+
4+
5+
class HatchetConfigurationError(HatchetError):
6+
"""Raised when required configuration is missing or invalid."""
7+
8+
9+
class HatchetConnectionError(HatchetError):
10+
"""Raised when the SDK cannot connect to the Hatchet server."""
11+
12+
13+
class HatchetServerError(HatchetError):
14+
"""Raised when the Hatchet server returns an unexpected response."""

sdks/python/hatchet_sdk/exceptions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
import traceback
33
from typing import cast
44

5+
56
class HatchetConfigurationError(ValueError):
67
"""Raised when required configuration is missing or invalid."""
78

9+
810
class InvalidDependencyError(Exception):
911
pass
1012

0 commit comments

Comments
 (0)