35 references to XamlObjectWriterException
System.Xaml (35)
System\Xaml\Context\NameFixupGraph.cs (1)
499
throw new
XamlObjectWriterException
(exceptionMessage.ToString());
System\Xaml\InfosetObjects\XamlObjectWriter.cs (32)
267
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
282
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
305
_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name)));
336
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
341
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
348
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
412
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
417
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
423
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
604
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
638
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.LateConstructionDirective, property.Name)));
647
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name)));
655
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.AttachedPropOnFwdRefTC,
708
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
835
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
904
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
911
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
1055
throw lineInfo.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.MissingKey, instanceType.Name)));
1167
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.CannotResolveTypeForFactoryMethod, ownerTypeName, propertyName.Name)));
1178
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.NotAssignableFrom, currentType.GetQualifiedName(), instType.GetQualifiedName())));
1222
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
1254
throw ctx.WithLineInfo(new
XamlObjectWriterException
(err));
1258
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.InitializationSyntaxWithoutTypeConverter, xamlType.GetQualifiedName())));
1638
throw new
XamlObjectWriterException
(SR.CannotSetBaseUri);
1971
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
2008
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
2061
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
2181
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class)));
2186
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class)));
2199
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.XClassMustMatchRootInstance, className, rootInstanceType.FullName)));
2218
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.TransitiveForwardRefDirectives,
2333
throw new
XamlObjectWriterException
(exceptionMessage.ToString());
System\Xaml\Runtime\ClrObjectRuntime.cs (2)
567
throw new
XamlObjectWriterException
(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader));
596
throw new
XamlObjectWriterException
(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader));