UNPKG
twitch-api-ts
Version:
latest (0.1.2)
0.1.2
0.1.1
0.1.0
Modern wrapper for the Twitch API with typings.
github.com/sammwyy/twitch-api
sammwyy/twitch-api
twitch-api-ts
/
src
/
twitch-api-exception.ts
13 lines
(10 loc)
•
234 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
class
TwitchAPIException
extends
Error
{
private
readonly
status
:
number
;
constructor
(
status
:
number
,
message
:
string
) {
super
(message);
this
.
status
= status; }
getStatusCode
(
) {
return
this
.
status
; } }