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