class InvalidRouteException extends Error { public constructor(file: string) { super(`Invalid route: ${file}`); this.name = 'InvalidRoute'; } } export { InvalidRouteException };