14 references to Except
Microsoft.ML.Core (14)
CommandLine\CmdParser.cs (4)
479
throw Contracts.
Except
($"Duplicate default argument '{def.LongName}' vs '{field.Name}'");
500
throw Contracts.
Except
($"Duplicate name '{name}' in argument type '{type.Name}'");
506
throw Contracts.
Except
($"Duplicate name '{nick}' in argument type '{type.Name}'");
1166
throw Contracts.
Except
("Invalid Component string: mismatched braces, or empty component name.");
ComponentModel\ComponentCatalog.cs (5)
496
throw 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.");
541
throw Contracts.
Except
($"ComponentCatalog cannot map name '{name}' and SignatureType '{sigType}' to {info.Type.Name}, already mapped to {infoCur.Type.Name}.");
701
throw Contracts.
Except
(
1072
throw Contracts.
Except
(errorMsg);
1092
throw Contracts.
Except
($"An extension for '{key.AttributeType.Name}' with contract '{key.ContractName}' has already been registered in the ComponentCatalog.");
ComponentModel\LoadableClassAttribute.cs (1)
200
throw Contracts.
Except
("Invalid signature parameter attributes");
Data\AnnotationUtils.cs (1)
118
public static Exception ExceptGetAnnotation() => Contracts.
Except
("Invalid call to GetAnnotation");
Utilities\Contracts.cs (1)
491
throw
Except
(msg);
Utilities\ReservoirSampler.cs (2)
84
throw Contracts.
Except
("Cannot continue to sample after Lock() has been called");
110
throw Contracts.
Except
("Call Lock() before the call to GetSample()");