38 instantiations of XamlObjectWriterException
System.Xaml (38)
System\Xaml\Context\NameFixupGraph.cs (1)
499throw new XamlObjectWriterException(exceptionMessage.ToString());
System\Xaml\InfosetObjects\XamlObjectWriter.cs (34)
267throw _context.WithLineInfo(new XamlObjectWriterException(err)); 282throw _context.WithLineInfo(new XamlObjectWriterException(err)); 305_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name))); 336throw _context.WithLineInfo(new XamlObjectWriterException(err)); 341throw _context.WithLineInfo(new XamlObjectWriterException(err)); 348throw _context.WithLineInfo(new XamlObjectWriterException(err)); 412throw _context.WithLineInfo(new XamlObjectWriterException(err)); 417throw _context.WithLineInfo(new XamlObjectWriterException(err)); 423throw _context.WithLineInfo(new XamlObjectWriterException(err)); 604throw _context.WithLineInfo(new XamlObjectWriterException(err)); 638throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.LateConstructionDirective, property.Name))); 647throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name))); 655throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.AttachedPropOnFwdRefTC, 708throw _context.WithLineInfo(new XamlObjectWriterException(err)); 835throw _context.WithLineInfo(new XamlObjectWriterException(err)); 904throw _context.WithLineInfo(new XamlObjectWriterException(err)); 911throw _context.WithLineInfo(new XamlObjectWriterException(err)); 1055throw lineInfo.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.MissingKey, instanceType.Name))); 1167throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.CannotResolveTypeForFactoryMethod, ownerTypeName, propertyName.Name))); 1178throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NotAssignableFrom, currentType.GetQualifiedName(), instType.GetQualifiedName()))); 1222throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 1254throw ctx.WithLineInfo(new XamlObjectWriterException(err)); 1258throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.InitializationSyntaxWithoutTypeConverter, xamlType.GetQualifiedName()))); 1300throw lineInfo.WithLineInfo(new XamlObjectWriterException(err, ex)); 1638throw new XamlObjectWriterException(SR.CannotSetBaseUri); 1971throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 2008throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 2061throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 2151throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NameScopeException, ex.Message), ex)); 2181throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class))); 2186throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class))); 2199throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.XClassMustMatchRootInstance, className, rootInstanceType.FullName))); 2218throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.TransitiveForwardRefDirectives, 2333throw 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)
1850catch (XamlObjectWriterException ex)