UNPKG

379 BTypeScriptView Raw
1import { HAPStatus } from "../HAPServer";
2/**
3 * Throws a HAP status error that is sent back to HomeKit.
4 *
5 * @example
6 * ```ts
7 * throw new HapStatusError(HAPStatus.OPERATION_TIMED_OUT);
8 * ```
9 *
10 * @group Utils
11 */
12export declare class HapStatusError extends Error {
13 hapStatus: HAPStatus;
14 constructor(status: HAPStatus);
15}
16//# sourceMappingURL=hapStatusError.d.ts.map
\No newline at end of file