Full self-hosted port of the Elydora tamper-evident audit protocol: - Hono API server with PostgreSQL, Redis, MinIO adapters - Ed25519 signed operations, chain hashing, Merkle epoch rollups - PBKDF2 password hashing, HMAC-SHA256 JWT, 5-role RBAC - Next.js management console - Node.js, Python, and Go SDKs - Docker Compose for local deployment - Helm chart for Kubernetes - Comprehensive security hardening and audit fixes applied Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
768 B
Python
31 lines
768 B
Python
"""Elydora SDK error types."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any, Dict, Optional
|
|
|
|
|
|
class ElydoraError(Exception):
|
|
"""Error returned by the Elydora API."""
|
|
|
|
def __init__(
|
|
self,
|
|
code: str,
|
|
message: str,
|
|
request_id: str = "",
|
|
details: Optional[Dict[str, Any]] = None,
|
|
status_code: int = 0,
|
|
) -> None:
|
|
super().__init__(message)
|
|
self.code = code
|
|
self.message = message
|
|
self.request_id = request_id
|
|
self.details = details or {}
|
|
self.status_code = status_code
|
|
|
|
def __repr__(self) -> str:
|
|
return (
|
|
f"ElydoraError(code={self.code!r}, message={self.message!r}, "
|
|
f"request_id={self.request_id!r})"
|
|
)
|