Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

641 B
Raw Blame
/** Distinguish corrupt recognized pycs from magics outside parser coverage. */
export class PythonPycFormatFailure extends Error {
  constructor(
    readonly kind: "malformed" | "unsupported",
    message: string,
  ) {
    super(message);
    this.name = "PythonPycFormatFailure";
  }
}

/** Resource boundary exceeded while walking marshal objects. */
export class PythonPycResourceFailure extends Error {
  constructor(
    readonly boundary: "objects" | "depth" | "string",
    readonly reported_limits: Readonly<Record<string, number>>,
    message: string,
  ) {
    super(message);
    this.name = "PythonPycResourceFailure";
  }
}