diff options
author | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-03-12 23:59:02 +0000 |
---|---|---|
committer | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-03-12 23:59:02 +0000 |
commit | b66d099bdda2ce1cfaeeb7938346a348ef4d40cd (patch) | |
tree | 0a05f3bb096de81ac618bb93101c8d3a60969a86 /plugins/funind | |
parent | 091824ae0f9bffcdee757bbd048e8a0f63cc5054 (diff) |
New function Errors.noncritical for restricting try ... with ...
For the moment, are considered critical :
Sys.Break, Stack_overflow, Out_of_memory
Assert_failure, Match_failure, Anomaly, Timeout, Drop, Exit
These exceptions should normally *not* be catched by a "try",
hence the suggested code for generic "try":
try ... with e when Errors.noncritical e -> ...
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16269 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/funind')
0 files changed, 0 insertions, 0 deletions