UNPKG

knxultimate

Version:

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

19 lines (16 loc) 534 B
/** * Defines the Invalid Value 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 InvalidValueError extends Error { public constructor() { super('invalid value') // We need to set the prototype explicitly Object.setPrototypeOf(this, InvalidValueError.prototype) Object.getPrototypeOf(this).name = 'InvalidValueError' } }