1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.HapStatusError = void 0;
|
4 | const HAPServer_1 = require("../HAPServer");
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | class HapStatusError extends Error {
|
16 | hapStatus;
|
17 | constructor(status) {
|
18 | super("HAP Status Error: " + status);
|
19 | Object.setPrototypeOf(this, HapStatusError.prototype);
|
20 | if ((0, HAPServer_1.IsKnownHAPStatusError)(status)) {
|
21 | this.hapStatus = status;
|
22 | }
|
23 | else {
|
24 | this.hapStatus = -70402 ;
|
25 | }
|
26 | }
|
27 | }
|
28 | exports.HapStatusError = HapStatusError;
|
29 |
|
\ | No newline at end of file |