How to I determine LookupError.NotFound from AggregateException
Here is code:
try{
pFilesRoutes.GetMetadataAsync("/shesnotthere", false)
}catch(AggregateException e)
{
foreach (var err in e.InnerExceptions)
{
if (err is LookupError.NotFound)
do something
}}}
How do I "dig out" the correct error and check its type ?