Details
Description
The CLI currently provides a mechanism, 'filter', so that it will only handle an exception if a condition holds:
For an example: http://dotnet.org.za/armand/archive/2005/11/09/48087.aspx and http://www.microsoft.com/mspress/books/sampchap/5771.aspx
proposed syntax:
except ex as SomeException if arg is not null: print "arg is not null, so I'll handle it"
except as SomeException if ItDidntWork(): print "It Didn't Work, but I'll handle it."
except unless boolArg:
print "boolArg was true, so I'll handle it."
Attachments
Issue Links
| This issue relates to: | ||||
| BOO-880 | Exception Handling: Allow for exception fault handlers |
|
|
|
| BOO-910 | Boo doesn't catch non-CLS compliant exceptions at runtime |
|
|
|
| This issue is related to: | ||||
| BOO-836 | WSA Boo "end" keyword required for some blocks and not others |
|
|
|
| This issue supercedes: | ||||
| BOO-877 | Exception Handling: Allow anonymous typed handlers |
|
|
|
| BOO-876 | Exception Handling: Remove hidden '__exception' variable |
|
|
|
A smaller, more succinct, and complete patch file for all linked exception issues.