Lund-Org/cherry

View on GitHub
src/routes/exceptions/RouteException.js

Summary

Maintainability
A
0 mins
Test Coverage
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