mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
* progress on better error handling * wiring onError callback through module loader and resolver * fix error callbacks not being stored * update onError to be record * type alias * wiring * seems to work * update error handling contract and wire more * add command error builder * fix merge * progress on error handling * naive onError handling, not tested * progres * proress * progress on abstracting away iti * seems to work * fix tests * better typings * add doc * abstracting iti * remove onerror for this pr * feat: better way to add dependencies * fix tests
19 lines
375 B
TypeScript
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 throw.
|
|
* @param error
|
|
*/
|
|
updateAlive(error: Error): void;
|
|
|
|
}
|