File size: 600 Bytes
433dbdf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
27
28
29
30
31
32
33
34
"""Stable relay error types surfaced to callers and MCP tools."""

from __future__ import annotations


class RelayError(Exception):
    """Base error with a stable public code."""

    code = "relay_error"


class ValidationError(RelayError):
    code = "validation_error"


class PermissionDenied(RelayError):
    code = "permission_denied"


class NotFound(RelayError):
    code = "not_found"


class Conflict(RelayError):
    code = "conflict"


class ProviderUnavailable(RelayError):
    code = "provider_unavailable"


class AuthorityUnavailable(RelayError):
    code = "authority_unavailable"