UNPKG

@bare-ts/lib

Version:

TypeScript library for BARE, a compact and simple binary-serialization format

11 lines (10 loc) 245 B
"use strict"; export class BareError extends Error { constructor(offset, issue, opts) { super(`(byte:${offset}) ${issue}`); this.name = "BareError"; this.issue = issue; this.offset = offset; this.cause = opts?.cause; } }