UNPKG
core-api-lib
Version:
latest (0.6.1)
next (0.1.1-1)
0.6.1
0.6.0
0.5.1
0.5.0
0.3.1
0.3.0
0.2.0
0.1.2-1
0.1.2-0
0.1.1
0.1.1-1
0.1.1-0
0.1.0
0.0.6-3
0.0.6-2
0.0.6-1
0.0.6-0
0.0.5
0.0.4
0.0.4-1
0.0.4-0
0.0.3
0.0.2
0.0.1
Core library with all microservice utilities
core-api-lib
/
common
/
http-exception.js
12 lines
(11 loc)
•
330 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
class
HttpException
extends
Error
{
constructor
(
statusCode, message, error
) {
super
(message);
this
.
statusCode
= statusCode;
this
.
message
= message;
this
.
error
= error ||
null
; } }
exports
.
default
=
HttpException
;