2 types derived from XamlObjectWriterException
System.Xaml.Tests (2)
System\Xaml\XamlDuplicateMemberExceptionTests.cs (1)
96private class SubXamlDuplicateMemberException : XamlObjectWriterException
System\Xaml\XamlObjectWriterExceptionTests.cs (1)
66private class SubXamlObjectWriterException : XamlObjectWriterException
42 instantiations of XamlObjectWriterException
System.Xaml (38)
System\Xaml\Context\NameFixupGraph.cs (1)
515throw new XamlObjectWriterException(exceptionMessage.ToString());
System\Xaml\InfosetObjects\XamlObjectWriter.cs (34)
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()))); 1328throw lineInfo.WithLineInfo(new XamlObjectWriterException(err, ex)); 1669throw new XamlObjectWriterException(SR.CannotSetBaseUri); 2016throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 2055throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 2109throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 2200throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NameScopeException, ex.Message), ex)); 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 (3)
589throw new XamlObjectWriterException(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader)); 620throw new XamlObjectWriterException(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader)); 708ex = new XamlObjectWriterException(message, innerException);
System.Xaml.Tests (4)
System\Xaml\XamlObjectWriterExceptionTests.cs (4)
16var exception = new XamlObjectWriterException(); 26var exception = new XamlObjectWriterException("message"); 44var exception = new XamlObjectWriterException(message, innerException); 61var exception = new XamlObjectWriterException();
5 references to XamlObjectWriterException
System.Xaml (1)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
1887catch (XamlObjectWriterException ex)
System.Xaml.Tests (4)
System\Xaml\XamlObjectWriterExceptionTests.cs (4)
16var exception = new XamlObjectWriterException(); 26var exception = new XamlObjectWriterException("message"); 44var exception = new XamlObjectWriterException(message, innerException); 61var exception = new XamlObjectWriterException();