17 references to ExceptionContext
Microsoft.ML.Core (17)
Data\ModelLoadContext.cs (1)
80_ectx = rep.ExceptionContext;
Data\ModelSaveContext.cs (1)
89_ectx = rep.ExceptionContext;
Data\Repository.cs (15)
321ExceptionContext.Check(!Disposed); 329throw ExceptionContext.ExceptParam(nameof(name), "Duplicate entry: '{0}'", pathEnt); 344ExceptionContext.AssertValue(ent); 355ExceptionContext.Assert(!Disposed); 386ExceptionContext.Assert(!Disposed); 387ExceptionContext.AssertValue(_closed); 388ExceptionContext.AssertValue(_archive); 418ExceptionContext.Check(!Disposed); 419ExceptionContext.AssertValue(_closed); 470throw ExceptionContext.ExceptDecode(ex, "Failed to open a zip archive"); 495throw ExceptionContext.Except("Repository doesn't contain entry {0}", pathEnt); 505ExceptionContext.Check(!Disposed); 537throw ExceptionContext.ExceptParam(nameof(name), "Duplicate entry: '{0}'", pathLower); 544ExceptionContext.CheckDecode(entry.Length < int.MaxValue, "Repository stream too large to read into memory"); 557ExceptionContext.AssertValue(ent);