Buckets:

download
raw
2.46 kB
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# Copyright (c) Agent-Mesh Contributors. All rights reserved.
# Licensed under the MIT License.
"""Centralized exception hierarchy for AgentMesh.
All AgentMesh exceptions inherit from AgentMeshError, enabling
consistent error handling across integrations and core modules.
"""
class AgentMeshError(Exception):
"""Base exception for all AgentMesh errors."""
class IdentityError(AgentMeshError):
"""Errors related to agent identity (DID, keys, credentials)."""
class AttestationError(IdentityError):
"""Errors related to confidential-computing attestation."""
class AttestationCollectionError(AttestationError):
"""Attestation evidence could not be collected from the runtime."""
class AttestationVerificationError(AttestationError):
"""Attestation evidence failed verification against reference values."""
class KeyAcquisitionError(IdentityError):
"""TEE key acquisition failed (SKR denied, attestation expired, etc.)."""
class TrustError(AgentMeshError):
"""Errors related to trust scoring and verification."""
class TrustVerificationError(TrustError):
"""Trust verification failed during handshake or delegation."""
class TrustViolationError(TrustError):
"""Trust policy was violated during agent interaction."""
class DelegationError(AgentMeshError):
"""Errors related to scope chains."""
class DelegationDepthError(DelegationError):
"""Raised when scope chain exceeds the configured max depth."""
class GovernanceError(AgentMeshError):
"""Errors related to governance policy enforcement."""
class HandshakeError(TrustError):
"""Errors during trust handshake protocol."""
class HandshakeTimeoutError(HandshakeError):
"""Raised when a trust handshake exceeds the configured timeout."""
class StorageError(AgentMeshError):
"""Errors related to storage backend operations."""
class MarketplaceError(AgentMeshError):
"""Errors related to the plugin marketplace."""
__all__ = [
"AgentMeshError",
"IdentityError",
"AttestationError",
"AttestationCollectionError",
"AttestationVerificationError",
"KeyAcquisitionError",
"TrustError",
"TrustVerificationError",
"TrustViolationError",
"DelegationError",
"DelegationDepthError",
"GovernanceError",
"HandshakeError",
"HandshakeTimeoutError",
"StorageError",
"MarketplaceError",
]

Xet Storage Details

Size:
2.46 kB
·
Xet hash:
9e6a278bfe037292e840c4b39d7f6f8d0ef8a4ee3e19718bea6f6c85c0cf50f0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.