globalExceptionHandler property

(void Function(CommandError<Object> error, StackTrace stackTrace)?) globalExceptionHandler
getter/setter pair

optional hander that will get called on any exception that happens inside any Command of the app. Ideal for logging. the debugName of the Command that was responsible for the error is inside the error object.

Implementation

static void Function(CommandError<Object> error, StackTrace stackTrace)?
    globalExceptionHandler;