Improve error handling

This commit is contained in:
Christopher Schleiden
2022-12-08 10:17:29 -08:00
parent 0b2c8c5e46
commit 71c3fcbb47
5 changed files with 34 additions and 2 deletions
@@ -0,0 +1,19 @@
import {Logger} from "../log";
export class TestLogger implements Logger {
error(message: string): void {
throw new Error(`Error: ${message}`);
}
warn(message: string): void {
console.warn(message);
}
info(message: string): void {
console.info(message);
}
log(message: string): void {
console.warn(message);
}
}