2 types derived from XamlObjectWriterException
System.Xaml.Tests (2)
System\Xaml\XamlDuplicateMemberExceptionTests.cs (1)
96
private class SubXamlDuplicateMemberException :
XamlObjectWriterException
System\Xaml\XamlObjectWriterExceptionTests.cs (1)
66
private class SubXamlObjectWriterException :
XamlObjectWriterException
42 instantiations of XamlObjectWriterException
System.Xaml (38)
System\Xaml\Context\NameFixupGraph.cs (1)
515
throw new
XamlObjectWriterException
(exceptionMessage.ToString());
System\Xaml\InfosetObjects\XamlObjectWriter.cs (34)
265
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
281
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
304
_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name)));
335
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
341
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
348
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
414
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
420
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
427
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
611
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
645
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.LateConstructionDirective, property.Name)));
654
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name)));
663
throw _context.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.AttachedPropOnFwdRefTC,
718
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
849
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
919
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
927
throw _context.WithLineInfo(new
XamlObjectWriterException
(err));
1075
throw lineInfo.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.MissingKey, instanceType.Name)));
1190
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.CannotResolveTypeForFactoryMethod, ownerTypeName, propertyName.Name)));
1201
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.NotAssignableFrom, currentType.GetQualifiedName(), instType.GetQualifiedName())));
1246
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
1278
throw ctx.WithLineInfo(new
XamlObjectWriterException
(err));
1283
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.InitializationSyntaxWithoutTypeConverter, xamlType.GetQualifiedName())));
1328
throw lineInfo.WithLineInfo(new
XamlObjectWriterException
(err, ex));
1669
throw new
XamlObjectWriterException
(SR.CannotSetBaseUri);
2016
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
2055
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
2109
throw ctx.WithLineInfo(new
XamlObjectWriterException
(msg));
2200
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.NameScopeException, ex.Message), ex));
2228
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class)));
2233
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class)));
2248
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.XClassMustMatchRootInstance, className, rootInstanceType.FullName)));
2267
throw ctx.WithLineInfo(new
XamlObjectWriterException
(SR.Format(SR.TransitiveForwardRefDirectives,
2390
throw new
XamlObjectWriterException
(exceptionMessage.ToString());
System\Xaml\Runtime\ClrObjectRuntime.cs (3)
589
throw new
XamlObjectWriterException
(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader));
620
throw new
XamlObjectWriterException
(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader));
708
ex = new
XamlObjectWriterException
(message, innerException);
System.Xaml.Tests (4)
System\Xaml\XamlObjectWriterExceptionTests.cs (4)
16
var exception = new
XamlObjectWriterException
();
26
var exception = new
XamlObjectWriterException
("message");
44
var exception = new
XamlObjectWriterException
(message, innerException);
61
var exception = new
XamlObjectWriterException
();
5 references to XamlObjectWriterException
System.Xaml (1)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
1887
catch (
XamlObjectWriterException
ex)
System.Xaml.Tests (4)
System\Xaml\XamlObjectWriterExceptionTests.cs (4)
16
var
exception = new XamlObjectWriterException();
26
var
exception = new XamlObjectWriterException("message");
44
var
exception = new XamlObjectWriterException(message, innerException);
61
var
exception = new XamlObjectWriterException();