(obj: string | CompileErrorInfo)
| 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 | |
| 28 | export class FormatError extends Error { |
nothing calls this directly
no outgoing calls
no test coverage detected