@lund-org/cherry
Version:
A light framework to quickly create a web server
10 lines (7 loc) • 397 B
JavaScript
const CherryError = require('../abstract/CherryError')
class DuplicateMiddlewareException extends CherryError {
constructor (middlewareName) {
super(`The middleware '${middlewareName}' has been duplicated. To shutdown this exception, remove the duplicate or turn off by providing in the options the option 'allowDuplicatedMiddlewares'`)
}
}
module.exports = DuplicateMiddlewareException