Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit 82866ae

Browse files
committed
Add StyxValidationError
1 parent 5dccdd7 commit 82866ae

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

src/styxdefs/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
OutputPathType,
1818
Runner,
1919
StyxRuntimeError,
20+
StyxValidationError,
2021
)
2122

2223
__all__ = [
@@ -30,4 +31,5 @@
3031
"get_global_runner",
3132
"set_global_runner",
3233
"StyxRuntimeError",
34+
"StyxValidationError",
3335
]

src/styxdefs/types.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,18 @@ def __init__(
169169
message += f"\n{message_extra}"
170170

171171
super().__init__(message)
172+
173+
174+
class StyxValidationError(Exception):
175+
"""Styx validation error.
176+
177+
Raised when input validation fails for parameters.
178+
"""
179+
180+
def __init__(self, message: str) -> None:
181+
"""Initialize the error.
182+
183+
Args:
184+
message: The validation error message.
185+
"""
186+
super().__init__(message)

0 commit comments

Comments
 (0)