Lund-Org/cherry

View on GitHub
src/middlewares/MiddlewareNotFoundException.js

Summary

Maintainability
A
0 mins
Test Coverage
const CherryError = require('../abstract/CherryError')

class MiddlewareNotFoundException extends CherryError {
  constructor (name) {
    super(`An error occured : The middleware '${name}' doesn't exist`)
    this.middlewareName = name
  }
}

module.exports = MiddlewareNotFoundException