Files
rea/src/native/apple/AppleIps.errors.ts
T

29 lines
800 B
TypeScript

/** The ParseFailure format of an Apple DiagnosticReports `.ips` crash report. */
export const APPLE_IPS_FORMAT = "apple-ips";
/** Caller-selected budgets that bound IPS row expansion. */
export type AppleIpsSelectedBoundary =
| "threads"
| "frames"
| "images"
| "registers"
| "integer_text";
/** Fixed format ceilings that no caller argument raises. */
export type AppleIpsFixedBoundary =
| "termination_reasons"
| "unlisted_keys"
| "nesting";
/** Resource boundary exceeded while walking an IPS crash report. */
export class AppleIpsResourceFailure extends Error {
constructor(
readonly boundary: AppleIpsSelectedBoundary | AppleIpsFixedBoundary,
readonly maximum: number,
message: string,
) {
super(message);
this.name = "AppleIpsResourceFailure";
}
}