The Becasue exception violates code execution if it is not processed.
So a code like:
foreach (var error in errorList) { try { throw new Exception(error.PropertyName + " - " error.ErrorMessage, error.EntityValidationFailed); } catch(...) {} }
will throw a few exceptions, or rather errorList.Length
times that catch(..)
will handle, inside the loop body, if not re-selected from catch(..)
, will remain there.
source share