UNPKG
anypay.io
Version:
latest (1.10.3)
1.10.3
1.10.2
1.10.1-rc
1.10.0-rc
1.0.9
1.0.9-rc2
1.0.9-rc1
1.0.8
1.0.6
1.0.5
1.0.4
1.0.3
Module for the AnyPay payment system.
github.com/DavidErbaev/anypay.io
DavidErbaev/anypay.io
anypay.io
/
src
/
api
/
error
/
apiError.ts
14 lines
(11 loc)
•
259 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class
APIError
extends
Error
{
public
code;
constructor
(
message
:
string
,
code
:
number
) {
super
(message);
this
.
name
=
"APIError"
;
this
.
message
= message;
this
.
code
= code;
Error
.
captureStackTrace
(
this
); } }
export
default
APIError
;