【发布时间】:2020-05-19 20:22:12
【问题描述】:
一些异常会跳过错误处理。它没有进入我的任何异常处理,为什么?
这是第二次发生在不同的场合,仍然不知道如何修复第一次。
try {
ref.getDownloadURL().then((value) async {
}).catchError((e) {
var test = e;
});
} on Exception catch (ex) {
var test = ex;
} catch (e) {
var test = e;
}
【问题讨论】:
-
在调试器中单击“Step Over”后应该会转到 105
-
O.o 哦,是的……你说得对。谢谢。将其添加为答案,我会标记它
标签: flutter exception dart try-catch