UNPKG

knxultimate

Version:

KNX IP protocol implementation for Node. This is the ENGINE of Node-Red KNX-Ultimate node.

19 lines (16 loc) 571 B
/** * Defines the Request Timeout Error used within KNXUltimate error handling. * * Written in Italy with love, sun and passion, by Massimo Saccani. * * Released under the MIT License. * Use at your own risk; the author assumes no liability for damages. */ export default class RequestTimeoutError extends Error { public constructor(details: string) { super(`Request timeout: ${details}`) // We need to set the prototype explicitly Object.setPrototypeOf(this, RequestTimeoutError.prototype) Object.getPrototypeOf(this).name = 'RequestTimeoutError' } }