Lund-Org/cherry

View on GitHub
src/middlewares/DuplicateMiddlewareException.js

Summary

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