UNPKG
saturnus
Version:
latest (2.1.1)
2.1.1
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.0
0.1.0
0.0.1
Cron parser for ES6
github.com/malpercio/saturnus
malpercio/saturnus
saturnus
/
lib
/
errors
/
InverseOrderError.js
14 lines
(12 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class
InverseOrderError
extends Error { constructor(
min
,
max
){ let message =
"Altered order. '"
+
min
+
"' should be greater than or equal to "
+
max
;
super
(message); this.
min
=
min
; this.
max
=
max
; } } module.exports = InverseOrderError;