I am trying to catch exceptions based on exception type like in c#, but I am getting compiler error when I do the following
This type test or downcast will always at line | :? System.Exception as genericException ->
Can you not have multiple "catch" blocks in F#?
try
......
with
| :? System.AggregateException as aggregateException ->
for innerException in aggregateException.InnerExceptions do
log message
| :? System.Exception as genericException ->
log message
| genericException -> log message- Lee