UNPKG

@lund-org/cherry

Version:

A light framework to quickly create a web server

11 lines (8 loc) 278 B
const CherryError = require('../../abstract/CherryError') class RouteException extends CherryError { constructor (name) { super(`An error occured : The option '${name}' is missing in the route definition`) this.routeName = name } } module.exports = RouteException