Skip to main content
Glama
validation-service-error.js1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidationServiceError = void 0; class ValidationServiceError extends Error { constructor(message, nodeType, property, cause) { super(message); this.nodeType = nodeType; this.property = property; this.cause = cause; this.name = 'ValidationServiceError'; if (Error.captureStackTrace) { Error.captureStackTrace(this, ValidationServiceError); } } static jsonParseError(nodeType, cause) { return new ValidationServiceError(`Failed to parse JSON data for node ${nodeType}`, nodeType, undefined, cause); } static nodeNotFound(nodeType) { return new ValidationServiceError(`Node type ${nodeType} not found in repository`, nodeType); } static dataExtractionError(nodeType, dataType, cause) { return new ValidationServiceError(`Failed to extract ${dataType} for node ${nodeType}`, nodeType, dataType, cause); } } exports.ValidationServiceError = ValidationServiceError; //# sourceMappingURL=validation-service-error.js.map

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/czlonkowski/n8n-mcp'

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