chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
class OpenNotebookError(Exception):
|
||||
"""Base exception class for Open Notebook errors."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class DatabaseOperationError(OpenNotebookError):
|
||||
"""Raised when a database operation fails."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class UnsupportedTypeException(OpenNotebookError):
|
||||
"""Raised when an unsupported type is provided."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class InvalidInputError(OpenNotebookError):
|
||||
"""Raised when invalid input is provided."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class NotFoundError(OpenNotebookError):
|
||||
"""Raised when a requested resource is not found."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class AuthenticationError(OpenNotebookError):
|
||||
"""Raised when there's an authentication problem."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class ConfigurationError(OpenNotebookError):
|
||||
"""Raised when there's a configuration problem."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class ExternalServiceError(OpenNotebookError):
|
||||
"""Raised when an external service (e.g., AI model) fails."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class RateLimitError(OpenNotebookError):
|
||||
"""Raised when a rate limit is exceeded."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class FileOperationError(OpenNotebookError):
|
||||
"""Raised when a file operation fails."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class NetworkError(OpenNotebookError):
|
||||
"""Raised when a network operation fails."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class NoTranscriptFound(OpenNotebookError):
|
||||
"""Raised when no transcript is found for a video."""
|
||||
|
||||
pass
|
||||
Reference in New Issue
Block a user