globalExceptionHandler property

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

optional hander that will get called on any exception that happens inside any Command of the app. Ideal for logging. commandName the debugName of the Command

Implementation

static void Function(String? commandName, CommandError<Object> error)?
    globalExceptionHandler;