9 references to Except
Microsoft.ML.Core (9)
ComponentModel\ComponentCatalog.cs (1)
1139
throw env.
Except
($"Unable to locate an extension for the contract '{contractName}'. Ensure you have called {nameof(ComponentCatalog)}.{nameof(ComponentCatalog.RegisterAssembly)} with the Assembly that contains a class decorated with a '{attributeType.FullName}'.");
Data\AnnotationUtils.cs (1)
123
public static Exception ExceptGetAnnotation(this IExceptionContext ctx) => ctx.
Except
("Invalid call to GetAnnotation");
Data\IFileHandle.cs (4)
154
throw _ectx.
Except
("SimpleFileHandle has already been disposed");
164
throw _ectx.
Except
("CreateWriteStream called multiple times on SimpleFileHandle");
180
throw _ectx.
Except
("SimpleFileHandle hasn't been written yet");
185
throw _ectx.
Except
("Write stream for SimpleFileHandle hasn't been disposed");
Data\ProgressReporter.cs (1)
406
throw _ectx.
Except
("Event sent after the calculation lifetime expired.");
Utilities\Contracts.cs (1)
496
throw
Except
(ctx, msg);
Utilities\ResourceManagerUtils.cs (1)
287
return ch.
Except
("Download timed out");