UNPKG
oa-jira
Version:
latest (1.4.0)
1.4.0
1.3.2
1.3.1
1.3.0
1.1.0
1.0.0
0.2.1
0.1.0
Octet Agile's JIRA connectivity project.
oa-jira
/
src
/
commons
/
errors
/
missing.error.js
12 lines
(9 loc)
•
231 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
class
Missing
extends
Error
{
constructor
(
what
) {
super
(
`A [
${what}
] is mandatory and cannot be falsy.`
); }
static
reject
(
what
) {
return
Promise
.
reject
(
new
Missing
(what)); } }
module
.
exports
=
Missing
;