import type { ExceptionsProps } from './platform-exception.absract'; import { PlatformException } from './platform-exception.absract'; /** * Bootstrap exception is one that happens on application * startup (bootstrap). Exceptions of this kind should kill the * application completely. */ export abstract class BootstrapException extends PlatformException { /** * @param message error message * @param props additional properties */ constructor(message: string, props?: ExceptionsProps) { const { code, ...other } = props || {}; super(code ?? `BOOTSTRAP`, message, other); } }