Spaces:
Sleeping
Sleeping
Create core/exceptions.py
Browse files- core/exceptions.py +23 -0
core/exceptions.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# core/exceptions.py
|
2 |
+
|
3 |
+
# -*- coding: utf-8 -*-
|
4 |
+
#
|
5 |
+
# PROJECT: CognitiveEDA v5.0 - The QuantumLeap Intelligence Platform
|
6 |
+
#
|
7 |
+
# DESCRIPTION: Custom exception classes for precise error handling throughout the application.
|
8 |
+
|
9 |
+
class CognitiveEDAError(Exception):
|
10 |
+
"""Base exception for all application-specific errors."""
|
11 |
+
pass
|
12 |
+
|
13 |
+
class DataProcessingError(CognitiveEDAError):
|
14 |
+
"""Raised for errors during data loading or manipulation."""
|
15 |
+
pass
|
16 |
+
|
17 |
+
class AnalysisError(CognitiveEDAError):
|
18 |
+
"""Raised when a specific analysis module fails."""
|
19 |
+
pass
|
20 |
+
|
21 |
+
class APIKeyMissingError(CognitiveEDAError):
|
22 |
+
"""Raised when the required API key is not found."""
|
23 |
+
pass
|