UNPKG

@bacnet-js/device

Version:

A TypeScript library for implementing BACnet IP devices in Node.js.

25 lines 827 B
/** * Represents a BACnet-specific error with associated error code and error class. * * BACnet errors include both an error code and an error class to provide detailed * information about the nature of the error according to the BACnet specification. */ export class BDError extends Error { /** The specific BACnet error code */ code; /** The BACnet error class that categorizes this error */ class; /** * Creates a new BACnet error instance * * @param message - Human-readable error message * @param code - BACnet error code from the ErrorCode enum * @param clss - BACnet error class from the ErrorClass enum */ constructor(message, code, clss) { super(message); this.code = code; this.class = clss; } } //# sourceMappingURL=errors.js.map