UNPKG

@lund-org/cherry

Version:

A light framework to quickly create a web server

10 lines (7 loc) 361 B
const CherryError = require('../abstract/CherryError') class DuplicateHookException extends CherryError { constructor (hookName) { super(`The hook '${hookName}' has been duplicated. To shutdown this exception, remove the duplicate or turn off by providing in the options the option 'allowDuplicatedHooks'`) } } module.exports = DuplicateHookException