js2ts: util.ts 분리

This commit is contained in:
2021-08-21 20:45:10 +09:00
parent edbe8e3561
commit f23ebcdc2d
16 changed files with 56 additions and 86 deletions
+14
View File
@@ -0,0 +1,14 @@
export class RuntimeError extends Error {
public name = 'RuntimeError';
constructor(public message: string = '') {
super(message);
}
toString(): string {
if (this.message) {
return this.name + ': ' + this.message;
}
else {
return this.name;
}
}
}