Skip to main content
Glama
plainly-videos

Plainly Videos MCP Server

errors.ts2.01 kB
export class PlainlyMcpServerError extends Error { readonly solution: string; readonly details?: string; constructor({ message, solution, details, }: { message: string; solution: string; details?: string; }) { super(message); this.solution = solution; this.details = details; } } export class ProjectDesignNotFoundError extends PlainlyMcpServerError { constructor(projectDesignId: string) { super({ message: `Project / design with ID ${projectDesignId} not found.`, solution: "Verify the project design ID and try again.", }); } } export class TemplateVariantNotFoundError extends PlainlyMcpServerError { constructor(templateVariantId: string, projectDesignId: string) { super({ message: `Template variant with ID ${templateVariantId} not found in project / design ${projectDesignId}.`, solution: "Verify the template variant ID and try again.", }); } } export class MissingParametersError extends PlainlyMcpServerError { constructor(missing: { key: string; label: string | null }[]) { super({ message: "Missing required parameters.", solution: "Check the error details and provide missing mandatory parameters.", details: JSON.stringify(missing), }); } } export class InvalidRenderError extends PlainlyMcpServerError { constructor(message: string, invalidParams?: { key?: string; errors: string[] }[]) { super({ message: message || "An error occurred while creating the render.", solution: "Check the error details and adjust the parameters accordingly.", details: JSON.stringify(invalidParams), }); } } export class GeneralRenderError extends PlainlyMcpServerError { constructor(message: string, error: { [key: string]: string | object }) { super({ message: message || "An error occurred while creating the render.", solution: "Explain the error message and suggest next steps.", details: JSON.stringify(error), }); } }

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/plainly-videos/mcp-server'

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