static bool IsExceptionPresentInParentModel(ServiceConfiguration config, string exceptionName)
{
if (config.IsChildConfig)
{
// Check to see if the exception is present in a parent model
if (config.ParentConfig.ServiceModel.Exceptions.SingleOrDefault(
e => e.Name.Equals(exceptionName)) != null)
{
return true;
}
}
return false;
}