mcp-image-placeholder
Version:
MCP server for generating placeholder images using placehold.co and picsum.photos
21 lines • 933 B
TypeScript
/**
* Custom error classes for MCP Image Placeholder server
*/
export declare class ImagePlaceholderError extends Error {
code?: string | undefined;
context?: Record<string, unknown> | undefined;
constructor(message: string, code?: string | undefined, context?: Record<string, unknown> | undefined);
}
export declare class ValidationError extends ImagePlaceholderError {
constructor(field: string, value: unknown, constraints?: string);
}
export declare class ProviderError extends ImagePlaceholderError {
constructor(provider: string, message: string, context?: Record<string, unknown>);
}
export declare class ConfigurationError extends ImagePlaceholderError {
constructor(setting: string, value: unknown, expectedFormat?: string);
}
export declare class ServerError extends ImagePlaceholderError {
constructor(message: string, context?: Record<string, unknown>);
}
//# sourceMappingURL=index.d.ts.map