Skip to content

feat(exceptions): add session exception classes for better error hand…#2275

Closed
HemanthIITJ wants to merge 1 commit intoopenai:mainfrom
HemanthIITJ:feat/session-exception-and-improvements
Closed

feat(exceptions): add session exception classes for better error hand…#2275
HemanthIITJ wants to merge 1 commit intoopenai:mainfrom
HemanthIITJ:feat/session-exception-and-improvements

Conversation

@HemanthIITJ
Copy link

…ling

Add dedicated exception classes for session-related errors to provide clearer error messages and enable more specific exception handling.

  • Add SessionError base class with session_id tracking
  • Add SessionNotFoundError for missing session scenarios
  • Add SessionSerializationError for serialization failures
  • Export all new exceptions from package init.py
  • Add comprehensive tests for all session exceptions

…ling

Add dedicated exception classes for session-related errors to provide
clearer error messages and enable more specific exception handling.

- Add SessionError base class with session_id tracking
- Add SessionNotFoundError for missing session scenarios
- Add SessionSerializationError for serialization failures
- Export all new exceptions from package __init__.py
- Add comprehensive tests for all session exceptions
@seratch
Copy link
Member

seratch commented Jan 8, 2026

Thanks for sending this PR! However, it seems these exceptions are not used by sessions store implementation. Thus, adding the new ones does not make any sense. If you have a certain use case with granular error types with sessions, please start a discussion issue first.

@seratch seratch marked this pull request as draft January 8, 2026 09:00
@seratch seratch added needs-more-info Waiting for a reply/more info from the author feature:sessions labels Jan 8, 2026
@seratch seratch closed this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature:sessions needs-more-info Waiting for a reply/more info from the author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants