Files
core/hwe/ts/util/RuntimeError.ts
2021-08-21 20:45:10 +09:00

15 lines
331 B
TypeScript

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;
}
}
}