mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore: SessionNotFoundError only inherits form ValueError
Co-authored-by: Sasha Sobran <asobran@google.com> PiperOrigin-RevId: 874545504
This commit is contained in:
committed by
Copybara-Service
parent
dab80e4a8f
commit
8c0bd2034c
@@ -14,14 +14,11 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from .not_found_error import NotFoundError
|
||||
|
||||
|
||||
class SessionNotFoundError(ValueError, NotFoundError):
|
||||
class SessionNotFoundError(ValueError):
|
||||
"""Raised when a session cannot be found.
|
||||
|
||||
Inherits from both ValueError (for backward compatibility) and NotFoundError
|
||||
(for semantic consistency with the project's error hierarchy).
|
||||
Inherits from ValueError (for backward compatibility).
|
||||
"""
|
||||
|
||||
def __init__(self, message="Session not found."):
|
||||
|
||||
Reference in New Issue
Block a user