35 references to XamlObjectWriterException
System.Xaml (35)
System\Xaml\Context\NameFixupGraph.cs (1)
495throw new XamlObjectWriterException(exceptionMessage.ToString());
System\Xaml\InfosetObjects\XamlObjectWriter.cs (32)
260throw _context.WithLineInfo(new XamlObjectWriterException(err)); 275throw _context.WithLineInfo(new XamlObjectWriterException(err)); 298_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name))); 329throw _context.WithLineInfo(new XamlObjectWriterException(err)); 334throw _context.WithLineInfo(new XamlObjectWriterException(err)); 341throw _context.WithLineInfo(new XamlObjectWriterException(err)); 405throw _context.WithLineInfo(new XamlObjectWriterException(err)); 410throw _context.WithLineInfo(new XamlObjectWriterException(err)); 416throw _context.WithLineInfo(new XamlObjectWriterException(err)); 597throw _context.WithLineInfo(new XamlObjectWriterException(err)); 631throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.LateConstructionDirective, property.Name))); 640throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name))); 648throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.AttachedPropOnFwdRefTC, 701throw _context.WithLineInfo(new XamlObjectWriterException(err)); 828throw _context.WithLineInfo(new XamlObjectWriterException(err)); 897throw _context.WithLineInfo(new XamlObjectWriterException(err)); 904throw _context.WithLineInfo(new XamlObjectWriterException(err)); 1048throw lineInfo.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.MissingKey, instanceType.Name))); 1160throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.CannotResolveTypeForFactoryMethod, ownerTypeName, propertyName.Name))); 1171throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NotAssignableFrom, currentType.GetQualifiedName(), instType.GetQualifiedName()))); 1215throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 1247throw ctx.WithLineInfo(new XamlObjectWriterException(err)); 1251throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.InitializationSyntaxWithoutTypeConverter, xamlType.GetQualifiedName()))); 1629throw new XamlObjectWriterException(SR.CannotSetBaseUri); 1960throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 1997throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 2050throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 2168throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class))); 2173throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class))); 2186throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.XClassMustMatchRootInstance, className, rootInstanceType.FullName))); 2205throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.TransitiveForwardRefDirectives, 2320throw new XamlObjectWriterException(exceptionMessage.ToString());
System\Xaml\Runtime\ClrObjectRuntime.cs (2)
565throw new XamlObjectWriterException(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader)); 594throw new XamlObjectWriterException(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader));