48 references to ThrowException
PresentationFramework (48)
System\Windows\Markup\BamlCollectionHolder.cs (5)
132_reader.ThrowException(nameof(SR.ParserParentDO), Parent.ToString()); 149_reader.ThrowException(nameof(SR.ParserCantGetDPOrPi), AttributeName); 186_reader.ThrowException(nameof(SR.ParserCantGetProperty), PropertyDefinition.Name); 199_reader.ThrowException(nameof(SR.ParserCantGetDPOrPi), AttributeName); 213_reader.ThrowException(nameof(SR.ParserReadOnlyNullProperty), PropertyDefinition.Name);
System\Windows\Markup\BamlRecordReader.cs (43)
718ThrowException(nameof(SR.ParserBamlEvent), bamlRoutedEventRecord.Value); 767ThrowException(nameof(SR.ParserUnknownBaml), ((int)bamlRecord.RecordType).ToString(CultureInfo.CurrentCulture)); 865ThrowException(nameof(SR.ParserNoElementCreate2), elementType.FullName); 1014ThrowException(nameof(SR.ParserNoComplexMulti), propName); 1365ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 1803ThrowException(nameof(SR.ParserUnexpInBAML), keyRecord.RecordType.ToString(CultureInfo.CurrentCulture)); 1935ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2024ThrowException(nameof(SR.ParserUnexpInBAML), "BamlLiteralContent" ); 2036ThrowException(nameof(SR.ParserUnexpInBAML), "PropertyComplexStart"); 2072ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2184ThrowException(nameof(SR.ParserUnexpInBAML), "PropertyCustom"); 2261ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2275ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2290ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2306ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2429ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2477ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2630ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2651ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2891ThrowException(nameof(SR.ParserCantGetDPOrPi), propertyDefinition.Name); 2978ThrowException(nameof(SR.ParserNoMatchingArray), GetPropertyNameFromAttributeId(attributeId)); 3053ThrowException(nameof(SR.ParserReadOnlyProp), holder.PropertyDefinition.Name); 3147ThrowException(nameof(SR.ParserNullPropertyCollection), holder.PropertyDefinition.Name); 3168ThrowException(nameof(SR.ParserPropertyCollectionClosed), holder.PropertyDefinition.Name); 3285ThrowException(nameof(SR.ParserNoResource), bamlDefAttributeRecord.Value); 3338ThrowException(nameof(SR.ParserUnknownDefAttribute), bamlDefAttributeRecord.Name); 3356ThrowException(nameof(SR.ParserNoResource), XamlReaderHelper.DefinitionName); 3472ThrowException(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName); 3502ThrowException(nameof(SR.ParserNoComplexMulti), 3535ThrowException(nameof(SR.ParserNoComplexMulti), 3562ThrowException(nameof(SR.ParserNoMatchingIList), "?"); 3575ThrowException(nameof(SR.ParserNoMatchingIList), "?"); 3593ThrowException(nameof(SR.ParserUnexpInBAML), "Text"); 3622ThrowException(nameof(SR.ParserUnknownPresentationOptionsAttribute), bamlPresentationOptionsAttributeRecord.Name); 4221ThrowException(nameof(SR.ParserNoResource), resourceNameString); 4227ThrowException(nameof(SR.ParserNoResource) , $"{{{resourceNameObject}}}"); 4245ThrowException(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName); 4767ThrowException( nameof(SR.ParserCannotAddAnyChildren), typeName ); 4785ThrowException( nameof(SR.ParserCannotAddAnyChildren), typeName ); 4935ThrowException(nameof(SR.ParserParentDO), value.ToString()); 5228ThrowException(nameof(SR.ParserNotMarkedPublic), type.Name); 5235ThrowException(nameof(SR.ParserNotAllowedInternalType), type.Name); 5274ThrowException(nameof(SR.ParserNotAllowedInternalType), type.Name);