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