The GitHub repository (github.com/Alpaq92/Riposte) is gone with the suspended account. These are the files npm installed for ReaderJS from commit 307ef7dfd9c5e8c0c07a840874e013cf94a85ada, so this is that commit's packaged content, without its history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
344 B
JavaScript
11 lines
344 B
JavaScript
// engine/errors.js
|
|
// PostScript-level errors. `psname` is the PostScript error name (e.g.
|
|
// 'typecheck', 'undefined', 'stackunderflow') used by errordict later.
|
|
export class PSError extends Error {
|
|
constructor(name, detail) {
|
|
super(detail ? `${name}: ${detail}` : name);
|
|
this.psname = name;
|
|
this.detail = detail || null;
|
|
}
|
|
}
|