import log from "electron-log" ; /** An Error that is inherently logged. */ class LoggedError extends Error { param args constructor ( ... args ) { super ( ... args ) ; Error . captureStackTrace ( this , LoggedError ) ; log . error ( this ) ; } } export default LoggedError ;