/** * The error classes the language itself raises: their names, their contracts, * and the one table both the analyzer and the surface digest read. * * D114 item 11 / the Core ledger's 裁决项 (c): the reserved error class names * were absent from the `core` surface digest, so adding one, dropping one, or * changing what one carries moved no counter. They are a published contract — * a `catch` names them, `is` discriminates on them, `code` reports them — so * they are hashed like every other one, and this is the table that is hashed. * Lifting it out of `analyzer.ts` is also D115 §一.1: a table two readers share * is a module, not a hundred lines inside a constructor's neighbour. */ import { type ClassInfo } from "../contracts.ts"; /** * Every built-in error class and the contract it publishes, `Error` first. * * `Error`'s own members are the four JavaScript gives it plus `code`: ASY-U3 * keeps a non-Error rejection reachable as the JavaScript `cause`, and D50 rule * 89's `code` is the string form of the same identity `is` discriminates on — * the declared class name — so a log line or a JSON payload can carry an * error's class across a boundary that classes cannot cross. */ export declare function coreBuiltinErrorClasses(): ReadonlyMap; //# sourceMappingURL=builtin-errors.d.ts.map