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>
24 lines
575 B
TypeScript
24 lines
575 B
TypeScript
import type { ErrorCode } from './types.js';
|
|
|
|
export class ElydoraError extends Error {
|
|
public readonly code: ErrorCode;
|
|
public readonly requestId: string;
|
|
public readonly statusCode: number;
|
|
public readonly details?: Record<string, unknown>;
|
|
|
|
constructor(
|
|
statusCode: number,
|
|
code: ErrorCode,
|
|
message: string,
|
|
requestId: string,
|
|
details?: Record<string, unknown>,
|
|
) {
|
|
super(message);
|
|
this.name = 'ElydoraError';
|
|
this.statusCode = statusCode;
|
|
this.code = code;
|
|
this.requestId = requestId;
|
|
this.details = details;
|
|
}
|
|
}
|