36 references to XamlObjectWriterException
System.Xaml (35)
System\Xaml\Context\NameFixupGraph.cs (1)
515
throw new
XamlObjectWriterException
(exceptionMessage.ToString());
System\Xaml\InfosetObjects\XamlObjectWriter.cs (32)
265
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
281
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
304
_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name)));
335
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
341
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
348
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
414
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
420
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
427
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
611
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
645
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.LateConstructionDirective, property.Name)));
654
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name)));
663
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.AttachedPropOnFwdRefTC,
718
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
849
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
919
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
927
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
1075
throw lineInfo.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.MissingKey, instanceType.Name)));
1190
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.CannotResolveTypeForFactoryMethod, ownerTypeName, propertyName.Name)));
1201
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.NotAssignableFrom, currentType.GetQualifiedName(), instType.GetQualifiedName())));
1246
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
1278
throw ctx.WithLineInfo(new
XamlObjectWriterException
(err));
1283
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.InitializationSyntaxWithoutTypeConverter, xamlType.GetQualifiedName())));
1669
throw new
XamlObjectWriterException
(SR.CannotSetBaseUri);
2016
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
2055
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
2109
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
2228
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class)));
2233
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class)));
2248
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.XClassMustMatchRootInstance, className, rootInstanceType.FullName)));
2267
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.TransitiveForwardRefDirectives,
2390
throw new
XamlObjectWriterException
(exceptionMessage.ToString());
System\Xaml\Runtime\ClrObjectRuntime.cs (2)
589
throw new
XamlObjectWriterException
(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader));
620
throw new
XamlObjectWriterException
(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader));
System.Xaml.Tests (1)
System\Xaml\XamlObjectWriterExceptionTests.cs (1)
26
var exception = new
XamlObjectWriterException
("message");