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)
317
ExceptionContext
.Check(!Disposed);
325
throw
ExceptionContext
.ExceptParam(nameof(name), "Duplicate entry: '{0}'", pathEnt);
340
ExceptionContext
.AssertValue(ent);
351
ExceptionContext
.Assert(!Disposed);
382
ExceptionContext
.Assert(!Disposed);
383
ExceptionContext
.AssertValue(_closed);
384
ExceptionContext
.AssertValue(_archive);
414
ExceptionContext
.Check(!Disposed);
415
ExceptionContext
.AssertValue(_closed);
466
throw
ExceptionContext
.ExceptDecode(ex, "Failed to open a zip archive");
491
throw
ExceptionContext
.Except("Repository doesn't contain entry {0}", pathEnt);
501
ExceptionContext
.Check(!Disposed);
533
throw
ExceptionContext
.ExceptParam(nameof(name), "Duplicate entry: '{0}'", pathLower);
540
ExceptionContext
.CheckDecode(entry.Length < int.MaxValue, "Repository stream too large to read into memory");
553
ExceptionContext
.AssertValue(ent);