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)
724ThrowException(nameof(SR.ParserBamlEvent), bamlRoutedEventRecord.Value); 773ThrowException(nameof(SR.ParserUnknownBaml), ((int)bamlRecord.RecordType).ToString(CultureInfo.CurrentCulture)); 871ThrowException(nameof(SR.ParserNoElementCreate2), elementType.FullName); 1020ThrowException(nameof(SR.ParserNoComplexMulti), propName); 1371ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 1809ThrowException(nameof(SR.ParserUnexpInBAML), keyRecord.RecordType.ToString(CultureInfo.CurrentCulture)); 1941ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2030ThrowException(nameof(SR.ParserUnexpInBAML), "BamlLiteralContent" ); 2042ThrowException(nameof(SR.ParserUnexpInBAML), "PropertyComplexStart"); 2078ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2190ThrowException(nameof(SR.ParserUnexpInBAML), "PropertyCustom"); 2267ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2281ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2296ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2312ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2433ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2481ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2634ThrowException(nameof(SR.ParserUnexpInBAML), "Property"); 2655ThrowException(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId)); 2895ThrowException(nameof(SR.ParserCantGetDPOrPi), propertyDefinition.Name); 2982ThrowException(nameof(SR.ParserNoMatchingArray), GetPropertyNameFromAttributeId(attributeId)); 3057ThrowException(nameof(SR.ParserReadOnlyProp), holder.PropertyDefinition.Name); 3149ThrowException(nameof(SR.ParserNullPropertyCollection), holder.PropertyDefinition.Name); 3170ThrowException(nameof(SR.ParserPropertyCollectionClosed), holder.PropertyDefinition.Name); 3287ThrowException(nameof(SR.ParserNoResource), bamlDefAttributeRecord.Value); 3340ThrowException(nameof(SR.ParserUnknownDefAttribute), bamlDefAttributeRecord.Name); 3358ThrowException(nameof(SR.ParserNoResource), XamlReaderHelper.DefinitionName); 3474ThrowException(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName); 3504ThrowException(nameof(SR.ParserNoComplexMulti), 3537ThrowException(nameof(SR.ParserNoComplexMulti), 3564ThrowException(nameof(SR.ParserNoMatchingIList), "?"); 3577ThrowException(nameof(SR.ParserNoMatchingIList), "?"); 3595ThrowException(nameof(SR.ParserUnexpInBAML), "Text"); 3624ThrowException(nameof(SR.ParserUnknownPresentationOptionsAttribute), bamlPresentationOptionsAttributeRecord.Name); 4224ThrowException(nameof(SR.ParserNoResource), resourceNameString); 4230ThrowException(nameof(SR.ParserNoResource) , $"{{{resourceNameObject}}}"); 4248ThrowException(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName); 4770ThrowException( nameof(SR.ParserCannotAddAnyChildren), typeName ); 4788ThrowException( nameof(SR.ParserCannotAddAnyChildren), typeName ); 4938ThrowException(nameof(SR.ParserParentDO), value.ToString()); 5231ThrowException(nameof(SR.ParserNotMarkedPublic), type.Name); 5238ThrowException(nameof(SR.ParserNotAllowedInternalType), type.Name); 5277ThrowException(nameof(SR.ParserNotAllowedInternalType), type.Name);