Commit f5532d3
authored
Catch std::exception& instead of std::runtime_error&
Currently, if any standard exception inherited form `std::exception` will be thrown (like `std::bad_alloc`), the program will be terminated without explanation.
May be there are objective reasons to catch exceptions that way, but this is not obvious for me.
Thanks!1 parent 4beee51 commit f5532d3
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments