globalExceptionHandler static method
Implementation
static void globalExceptionHandler(
final Object error, final StackTrace stackTrace) {
Pen.error("App caught a global exception");
Pen.error("$error");
Pen.error("$stackTrace");
final AppException ex = AppException.fromObject(error);
Toast.error(
title: "${ex.name} occurred",
message: ex.message,
description: ex.description);
}