homebridge-denon-heos-audio
Version:
Control your Denon speakers via AVR Control and/or HeosCLI
11 lines • 554 B
JavaScript
export class PromiseTimeoutException extends Error {
expectedResponse;
actualResponse;
constructor(timeoutSeconds) {
super(timeoutSeconds ? `Promise timed out after ${timeoutSeconds}ms.` : `Promise timed out`); // Pass the message to the parent Error class
this.name = 'PromiseTimeoutException'; // Set the error name
// Ensure the prototype chain is correctly set for instanceof checks
Object.setPrototypeOf(this, PromiseTimeoutException.prototype);
}
}
//# sourceMappingURL=promiseTimeoutException.js.map