2022-09-30 18:16:52 +08:00

12 lines
277 B
TypeScript

import Log from "../Log";
export default class Starter {
public static run(T): void {
try {
new T().main();
} catch (error) {
Log.error(error);
Log.error('[Starter] trace: ', JSON.stringify({ error }));
}
}
}