Skip to main content
Glama
index.ts880 B
import ExtendableError from "extendable-error"; export class GitError extends ExtendableError { code: number; constructor(code: number, message: string) { super(`${message}, exit code: ${code}`); this.code = code; } } export class ValidationError extends ExtendableError {} export class ExitError extends ExtendableError { code: number; constructor(code: number) { super(`The process exited with code: ${code}`); this.code = code; } } export class PreExitButNotInPreModeError extends ExtendableError { constructor() { super("pre mode cannot be exited when not in pre mode"); } } export class PreEnterButInPreModeError extends ExtendableError { constructor() { super("pre mode cannot be entered when in pre mode"); } } export class InternalError extends ExtendableError { constructor(message: string) { super(message); } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ajaystream/hubspot-mcp-custom'

If you have feedback or need assistance with the MCP directory API, please join our Discord server