UNPKG

@iflow-mcp/ansvar-systems-german-law-mcp

Version:

German legal research MCP server with statutes, case law, and preparatory works from gesetze-im-internet.de

20 lines (19 loc) • 502 B
export class ShellError extends Error { code; details; constructor(code, message, details) { super(message); this.code = code; this.details = details; this.name = "ShellError"; } } export function toShellError(error) { if (error instanceof ShellError) { return error; } if (error instanceof Error) { return new ShellError("internal_error", error.message); } return new ShellError("internal_error", "Unknown error"); }