11 lines
341 B
JavaScript
11 lines
341 B
JavaScript
// Every refusal in this package is a SupervisorError. `kind` is "parse" for
|
|
// input text that isn't the shape the kernel writes, and "rules" for settings
|
|
// the evaluator refuses.
|
|
export class SupervisorError extends Error {
|
|
constructor(message, kind) {
|
|
super(message);
|
|
this.name = "SupervisorError";
|
|
this.kind = kind;
|
|
}
|
|
}
|