14 references to Except
Microsoft.ML.Core (14)
CommandLine\CmdParser.cs (4)
478throw Contracts.Except($"Duplicate default argument '{def.LongName}' vs '{field.Name}'"); 499throw Contracts.Except($"Duplicate name '{name}' in argument type '{type.Name}'"); 505throw Contracts.Except($"Duplicate name '{nick}' in argument type '{type.Name}'"); 1165throw Contracts.Except("Invalid Component string: mismatched braces, or empty component name.");
ComponentModel\ComponentCatalog.cs (5)
496throw Contracts.Except($"Can't load type {instType}, because it has both create and constructor methods with the same visibility. Please indicate which one should be used by changing either the signature or the visibility of one of them."); 541throw Contracts.Except($"ComponentCatalog cannot map name '{name}' and SignatureType '{sigType}' to {info.Type.Name}, already mapped to {infoCur.Type.Name}."); 701throw Contracts.Except( 1072throw Contracts.Except(errorMsg); 1092throw Contracts.Except($"An extension for '{key.AttributeType.Name}' with contract '{key.ContractName}' has already been registered in the ComponentCatalog.");
ComponentModel\LoadableClassAttribute.cs (1)
200throw Contracts.Except("Invalid signature parameter attributes");
Data\AnnotationUtils.cs (1)
118public static Exception ExceptGetAnnotation() => Contracts.Except("Invalid call to GetAnnotation");
Utilities\Contracts.cs (1)
491throw Except(msg);
Utilities\ReservoirSampler.cs (2)
84throw Contracts.Except("Cannot continue to sample after Lock() has been called"); 110throw Contracts.Except("Call Lock() before the call to GetSample()");