private void OnExceptionOccurred(YAXException ex, YAXExceptionTypes exceptionType)
{
m_exceptionOccurredDuringMemberDeserialization = true;
if (exceptionType == YAXExceptionTypes.Ignore)
{
return;
}
m_parsingErrors.AddException(ex, exceptionType);
if ((m_exceptionPolicy == YAXExceptionHandlingPolicies.ThrowWarningsAndErrors) ||
(m_exceptionPolicy == YAXExceptionHandlingPolicies.ThrowErrorsOnly && exceptionType == YAXExceptionTypes.Error))
{
throw ex;
}
}