Skip to content

Commit 6060fad

Browse files
authored
feat(error): add description field to FabricError init (#29)
1 parent 680d090 commit 6060fad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/ydata/core/error/fabric_error.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ class FabricError(Exception):
1919
def __init__(
2020
self,
2121
context: Optional[dict[str, str]] = None,
22+
description: Optional[str] = None,
2223
http_code: Optional[int] = None,
2324
name: Optional[str] = None):
2425
self.context = context
26+
if description:
27+
self.description = description
2528
if http_code:
2629
self.http_code = http_code
2730
self.name = name

0 commit comments

Comments
 (0)