UNPKG

mcp-wtit

Version:

A Model Context Protocol (MCP) server that provides current time in ISO8601 format with timezone support

20 lines 587 B
export class TimeServiceError extends Error { code; constructor(message, code) { super(message); this.code = code; this.name = 'TimeServiceError'; Object.setPrototypeOf(this, TimeServiceError.prototype); } } export class InvalidTimeZoneError extends TimeServiceError { constructor(timezone) { super(`Invalid timezone: ${timezone}`, 'INVALID_TIMEZONE'); } } export class TimeFormatError extends TimeServiceError { constructor(message) { super(message, 'FORMAT_ERROR'); } } //# sourceMappingURL=time.errors.js.map