Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

528 B
Raw Blame
/**
 * The two error kinds the trip-shaped domains raise and their controllers map to
 * HTTP. They live here rather than on one service so a second domain (calendar,
 * maps) can raise them without importing the first one just for its error types.
 */
export class NotFoundError extends Error {
  constructor(message: string) {
    super(message);
    this.name = 'NotFoundError';
  }
}

export class ValidationError extends Error {
  constructor(message: string) {
    super(message);
    this.name = 'ValidationError';
  }
}