mirror of
https://github.com/morluto/rea.git
synced 2026-11-26 06:08:37 +00:00
29 lines
800 B
TypeScript
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";
|
|
}
|
|
}
|