MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / constructor

Method constructor

packages/hydrojudge/src/error.ts:15–25  ·  view source on GitHub ↗
(obj: string | CompileErrorInfo)

Source from the content-addressed store, hash-verified

13 type = 'CompileError';
14
15 constructor(obj: string | CompileErrorInfo) {
16 super('Compile Error');
17 if (typeof obj === 'string') {
18 this.stdout = obj;
19 this.stderr = '';
20 } else {
21 this.stdout = obj.stdout || '';
22 this.stderr = obj.stderr || '';
23 this.status = obj.status ? STATUS_TEXTS[obj.status] || '' : '';
24 }
25 }
26}
27
28export class FormatError extends Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected