System\Xaml\InfosetObjects\XamlObjectWriter.cs (39)
110throw _context.WithLineInfo(new XamlInternalException());
266throw _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));
342throw _context.WithLineInfo(new XamlObjectWriterException(err));
349throw _context.WithLineInfo(new XamlObjectWriterException(err));
415throw _context.WithLineInfo(new XamlObjectWriterException(err));
421throw _context.WithLineInfo(new XamlObjectWriterException(err));
428throw _context.WithLineInfo(new XamlObjectWriterException(err));
521throw _context.WithLineInfo(new XamlDuplicateMemberException(
612throw _context.WithLineInfo(new XamlObjectWriterException(err));
646throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.LateConstructionDirective, property.Name)));
655throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name)));
664throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.AttachedPropOnFwdRefTC,
719throw _context.WithLineInfo(new XamlObjectWriterException(err));
850throw _context.WithLineInfo(new XamlObjectWriterException(err));
920throw _context.WithLineInfo(new XamlObjectWriterException(err));
928throw _context.WithLineInfo(new XamlObjectWriterException(err));
1063return _context.WithLineInfo(ex);
1145throw ctx.WithLineInfo(new XamlInternalException(SR.ConstructImplicitType));
1177throw ctx.WithLineInfo(new XamlInternalException(errMsg));
1191throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.CannotResolveTypeForFactoryMethod, ownerTypeName, propertyName.Name)));
1202throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NotAssignableFrom, currentType.GetQualifiedName(), instType.GetQualifiedName())));
1236throw ctx.WithLineInfo(new XamlInternalException(SR.NonMEWithPositionalParameters));
1247throw ctx.WithLineInfo(new XamlObjectWriterException(msg));
1255throw ctx.WithLineInfo(new XamlInternalException(SR.PositionalParamsWrongLength));
1279throw ctx.WithLineInfo(new XamlObjectWriterException(err));
1284throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.InitializationSyntaxWithoutTypeConverter, xamlType.GetQualifiedName())));
1528throw ctx.WithLineInfo(new XamlDuplicateMemberException(property, xamlType));
2017throw ctx.WithLineInfo(new XamlObjectWriterException(msg));
2041throw ctx.WithLineInfo(new XamlDuplicateMemberException(
2056throw ctx.WithLineInfo(new XamlObjectWriterException(msg));
2110throw ctx.WithLineInfo(new XamlObjectWriterException(msg));
2201throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NameScopeException, ex.Message), ex));
2229throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class)));
2234throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class)));
2249throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.XClassMustMatchRootInstance, className, rootInstanceType.FullName)));
2268throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.TransitiveForwardRefDirectives,