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)
321
ExceptionContext
.Check(!Disposed);
329
throw
ExceptionContext
.ExceptParam(nameof(name), "Duplicate entry: '{0}'", pathEnt);
344
ExceptionContext
.AssertValue(ent);
355
ExceptionContext
.Assert(!Disposed);
386
ExceptionContext
.Assert(!Disposed);
387
ExceptionContext
.AssertValue(_closed);
388
ExceptionContext
.AssertValue(_archive);
418
ExceptionContext
.Check(!Disposed);
419
ExceptionContext
.AssertValue(_closed);
470
throw
ExceptionContext
.ExceptDecode(ex, "Failed to open a zip archive");
495
throw
ExceptionContext
.Except("Repository doesn't contain entry {0}", pathEnt);
505
ExceptionContext
.Check(!Disposed);
537
throw
ExceptionContext
.ExceptParam(nameof(name), "Duplicate entry: '{0}'", pathLower);
544
ExceptionContext
.CheckDecode(entry.Length < int.MaxValue, "Repository stream too large to read into memory");
557
ExceptionContext
.AssertValue(ent);