我如何知道 try, catch 中捕获的异常的行号?这是我的代码:
try{
//your code here
} catch (Exception) {
print('Exception '+Exception.toString());
}
Run Code Online (Sandbox Code Playgroud)
小智 7
try{
//your code here
} catch (e, stacktrace) {
print('Exception: ' + e.toString());
print('Stacktrace: ' + stacktrace.toString());
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1129 次 |
| 最近记录: |