Files
handler/src/core/contracts/error-handling.ts
2023-09-10 23:52:31 -05:00

19 lines
375 B
TypeScript

import type { CommandModule,Processed, EventModule } from "../../types/core-modules";
/**
* @since 2.0.0
*/
export interface ErrorHandling {
/**
* @deprecated
* Version 4 will remove this method
*/
crash(err: Error): never;
/**
* A function that is called on every crash.
* @param error
*/
updateAlive(error: Error): void;
}