UNPKG
@lund-org/cherry
Version:
latest (0.2.2)
0.2.2
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
0.0.1
A light framework to quickly create a web server
github.com/Lund-Org/cherry
Lund-Org/cherry
@lund-org/cherry
/
src
/
middlewares
/
MiddlewareNotFoundException.js
11 lines
(8 loc)
•
289 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
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