38 instantiations of XamlObjectWriterException
System.Xaml (38)
System\Xaml\Context\NameFixupGraph.cs (1)
499
throw new
XamlObjectWriterException
(exceptionMessage.ToString());
System\Xaml\InfosetObjects\XamlObjectWriter.cs (34)
262
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
277
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
300
_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name)));
331
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
336
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
343
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
407
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
412
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
418
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
599
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
633
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.LateConstructionDirective, property.Name)));
642
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name)));
650
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.AttachedPropOnFwdRefTC,
703
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
830
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
899
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
906
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
1050
throw lineInfo.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.MissingKey, instanceType.Name)));
1162
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.CannotResolveTypeForFactoryMethod, ownerTypeName, propertyName.Name)));
1173
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.NotAssignableFrom, currentType.GetQualifiedName(), instType.GetQualifiedName())));
1217
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
1249
throw ctx.WithLineInfo(new
XamlObjectWriterException
(err));
1253
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.InitializationSyntaxWithoutTypeConverter, xamlType.GetQualifiedName())));
1295
throw lineInfo.WithLineInfo(new
XamlObjectWriterException
(err, ex));
1631
throw new
XamlObjectWriterException
(SR.CannotSetBaseUri);
1962
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
1999
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
2052
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
2142
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.NameScopeException, ex.Message), ex));
2170
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class)));
2175
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class)));
2188
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.XClassMustMatchRootInstance, className, rootInstanceType.FullName)));
2207
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.TransitiveForwardRefDirectives,
2322
throw new
XamlObjectWriterException
(exceptionMessage.ToString());
System\Xaml\Runtime\ClrObjectRuntime.cs (3)
567
throw new
XamlObjectWriterException
(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader));
596
throw new
XamlObjectWriterException
(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader));
681
ex = new
XamlObjectWriterException
(message, innerException);
1 reference to XamlObjectWriterException
System.Xaml (1)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
1841
catch (
XamlObjectWriterException
ex)