We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
message
1 parent 86e80ae commit 952eb18Copy full SHA for 952eb18
2 files changed
CHANGELOG.md
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
### Fixed
11
12
- Fixed API key validation to raise `AuthenticationError` instead of `ValueError` for invalid format, ensuring consistent error handling
13
+- Added `message` attribute to all Brainus AI exceptions to support `e.message` access pattern
14
15
## [0.1.5] - 2025-12-12
16
src/brainus_ai/exceptions.py
@@ -4,7 +4,9 @@
4
class BrainusError(Exception):
5
"""Base exception for all Brainus AI errors."""
6
7
- pass
+ def __init__(self, message: str, *args: object) -> None:
8
+ super().__init__(message, *args)
9
+ self.message = message
class AuthenticationError(BrainusError):
0 commit comments