src/routes/exceptions/RouteException.js
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