46 references to ExceptionBuilder
System.ComponentModel.Composition (46)
Microsoft\Internal\Requires.cs (3)
48throw ExceptionBuilder.CreateContainsNullElement(parameterName); 71throw ExceptionBuilder.CreateContainsNullElement(parameterName); 88throw ExceptionBuilder.CreateContainsNullElement(parameterName);
System\ComponentModel\Composition\AttributedModelServices.cs (1)
49throw ExceptionBuilder.CreateReflectionModelInvalidPartDefinition(nameof(partDefinition), partDefinition.GetType());
System\ComponentModel\Composition\Hosting\AggregateCatalog.cs (1)
226throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (2)
50throw ExceptionBuilder.CreateContainsNullElement(nameof(providers)); 222throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
169throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (1)
536throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (1)
342throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
862throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.FactoryExport.cs (2)
113throw ExceptionBuilder.CreateExportDefinitionNotOnThisComposablePart(nameof(definition)); 121throw ExceptionBuilder.CreateImportDefinitionNotOnThisComposablePart(nameof(definition));
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (1)
392throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\CompositionBatch.cs (2)
44throw ExceptionBuilder.CreateContainsNullElement(nameof(partsToAdd)); 58throw ExceptionBuilder.CreateContainsNullElement(nameof(partsToRemove));
System\ComponentModel\Composition\Hosting\CompositionBatch.SingleExportComposablePart.cs (2)
46throw ExceptionBuilder.CreateExportDefinitionNotOnThisComposablePart(nameof(definition)); 57throw ExceptionBuilder.CreateImportDefinitionNotOnThisComposablePart(nameof(definition));
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (2)
180throw ExceptionBuilder.CreateContainsNullElement(nameof(providers)); 606throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\CompositionScopeDefinition.cs (1)
253throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\CompositionServices.cs (7)
269throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_ReservedMetadataNameUsed, member.GetDisplayName(), provider.Name); 276throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_DuplicateMetadataNameValues, member.GetDisplayName(), provider.Name); 303throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_ReservedMetadataNameUsed, pi.GetDisplayName(), pi.Name); 310throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_MetadataContainsValueWithInvalidType, pi.GetDisplayName(), value.GetType().GetDisplayName()); 315throw ExceptionBuilder.CreateDiscoveryException(SR.Discovery_DuplicateMetadataNameValues, member.GetDisplayName(), pi.Name); 542throw ExceptionBuilder.CreateCannotGetExportedValue(part, definition, ex); 552throw ExceptionBuilder.CreateCannotGetExportedValue(part, definition, ex);
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (1)
778throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\FilteredCatalog.cs (1)
236throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\ImportEngine.cs (1)
733throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (3)
181throw ExceptionBuilder.CreateContainsNullElement(nameof(types)); 211throw ExceptionBuilder.CreateContainsNullElement(nameof(types)); 401throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (1)
144throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\Primitives\Export.cs (2)
149throw ExceptionBuilder.CreateNotOverriddenByDerived("Definition"); 242throw ExceptionBuilder.CreateNotOverriddenByDerived("GetExportedValueCore");
System\ComponentModel\Composition\Primitives\ExportDefinition.cs (1)
91throw ExceptionBuilder.CreateNotOverriddenByDerived("ContractName");
System\ComponentModel\Composition\Primitives\ImportDefinition.cs (1)
209throw ExceptionBuilder.CreateNotOverriddenByDerived("Constraint");
System\ComponentModel\Composition\ReflectionModel\DisposableReflectionComposablePart.cs (1)
30throw ExceptionBuilder.CreateObjectDisposed(this);
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
205throw ExceptionBuilder.ExportFactory_TooManyGenericParameters(genericType.FullName!);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (2)
179throw ExceptionBuilder.CreateExportDefinitionNotOnThisComposablePart(nameof(definition)); 196throw ExceptionBuilder.CreateImportDefinitionNotOnThisComposablePart(nameof(definition));
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (3)
24throw ExceptionBuilder.CreateReflectionModelInvalidPartDefinition(nameof(partDefinition), partDefinition.GetType()); 37throw ExceptionBuilder.CreateReflectionModelInvalidPartDefinition(nameof(partDefinition), partDefinition.GetType()); 310throw ExceptionBuilder.CreateReflectionModelInvalidPartDefinition(nameof(partDefinition), partDefinition.GetType());