Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ public virtual Type GetType(XmlQualifiedName xmlQualifiedName)
}
catch (Exception ex) when (!ExceptionUtility.IsCriticalException(ex))
{
// Intentionally ignore non-critical exceptions when resolving the type.
// Fallback logic below will handle the case where resolvedType remains null.
}

if (resolvedType == null)
Expand Down Expand Up @@ -244,6 +246,8 @@ public virtual Type GetType(string typeName)
}
catch (Exception ex) when (!ExceptionUtility.IsCriticalException(ex))
{
// Intentionally ignore non-critical exceptions when resolving the type.
// Fallback logic below will handle the case where type remains null.
}
}

Expand Down Expand Up @@ -273,6 +277,8 @@ public virtual Type GetType(string typeName)
}
catch (Exception ex) when (!ExceptionUtility.IsCriticalException(ex))
{
// Intentionally ignore non-critical exceptions when the assembly cannot be loaded.
// Fallback logic below will handle the case where assembly is null.
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1394,9 +1394,9 @@ private void DeserializeCompoundProperty(WorkflowMarkupSerializationManager seri
{
property.SetValue(obj, propValue, null);
}
catch
catch (Exception ex) when (!ExceptionUtility.IsCriticalException(ex))
{
serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerComplexPropertySetFailed, [propertyName, propertyName, obj.GetType().Name])));
serializationManager.ReportError(new WorkflowMarkupSerializationException(SR.GetString(SR.Error_SerializerComplexPropertySetFailed, [propertyName, propertyName, obj.GetType().Name]), ex));
}
}
}
Expand Down