commit | d1a853bca7a70467915b3759aa9de5e63a5e8edb | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Fri Oct 10 13:37:35 2014 +0200 |
committer | Pierre Ossman <ossman@cendio.se> | Fri Oct 10 13:37:35 2014 +0200 |
tree | 5bcb8ba3e2095e27b45eca447ca4e933661e6647 | |
parent | 86750633ff7c5d8836b751148234ab94e132b0a5 [diff] |
Use exceptions rather than asserts for for "normal" errors Although these are rare, they are still not indicative of bugs so an exception (which ends up in the log and might also be shown to the user) is more appropriate than an assert. Asserts should only be used to catch blatant API misuse and similar.