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