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