LogError class

This commit is contained in:
Ulf Gebhardt 2023-01-31 13:30:45 +01:00
parent ea2edc3e1c
commit 9c4de72be6
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -0,0 +1,9 @@
import { backendLogger as logger } from './logger'
export default class LogError extends Error {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
constructor(msg: string, ...details: any[]) {
super(msg)
logger.error(msg, ...details)
}
}