File size: 1,043 Bytes
91c4b21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""Structured errors for CORTEX orchestration and provider boundaries."""
class CortexOrchestrationError(Exception):
    category = "system_error"
class ProviderUnavailable(CortexOrchestrationError):
    category = "provider_error"
class ProviderTimeout(CortexOrchestrationError):
    category = "provider_error"
class ProviderAuthenticationError(CortexOrchestrationError):
    category = "provider_error"
class ProviderRateLimited(CortexOrchestrationError):
    category = "provider_error"
class InvalidToolInput(CortexOrchestrationError):
    category = "user_error"
class InvalidProviderResponse(CortexOrchestrationError):
    category = "provider_error"
class JobNotFound(CortexOrchestrationError):
    category = "user_error"
class JobCancelled(CortexOrchestrationError):
    category = "system_error"
class PolicyDenied(CortexOrchestrationError):
    category = "policy_error"
class CapabilityUnavailable(CortexOrchestrationError):
    category = "configuration_error"

__all__ = [name for name in globals() if not name.startswith("_")]