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
/
prohibited.error.js
12 lines
(9 loc)
•
267 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
class
Prohibited
extends
Error
{
constructor
(
what, denied
) {
super
(
`A [
${what}
] equals to [
${denied}
] is prohibited.`
); }
static
reject
(
what, denied
) {
return
Promise
.
reject
(
new
Prohibited
(what, denied)); } }
module
.
exports
=
Prohibited
;