88 references to IExceptionContext
Microsoft.ML.CpuMath (88)
src\Microsoft.ML.Core\Utilities\Contracts.cs (88)
64private static volatile Action<string, IExceptionContext> _handler; 88public static TException Process<TException>(this TException ex, IExceptionContext ectx = null) 237public static Action<string, IExceptionContext> SetAssertHandler(Action<string, IExceptionContext> handler) 257public static Exception Except(this IExceptionContext ctx) 261public static Exception Except(this IExceptionContext ctx, string msg) 265public static Exception Except(this IExceptionContext ctx, string msg, params object[] args) 269public static Exception Except(this IExceptionContext ctx, Exception inner, string msg) 273public static Exception Except(this IExceptionContext ctx, Exception inner, string msg, params object[] args) 283public static Exception ExceptUserArg(this IExceptionContext ctx, string name) 287public static Exception ExceptUserArg(this IExceptionContext ctx, string name, string msg) 291public static Exception ExceptUserArg(this IExceptionContext ctx, string name, string msg, params object[] args) 299public static Exception ExceptParam(this IExceptionContext ctx, string paramName) 303public static Exception ExceptParam(this IExceptionContext ctx, string paramName, string msg) 307public static Exception ExceptParam(this IExceptionContext ctx, string paramName, string msg, params object[] args) 311public static Exception ExceptParamValue<T>(this IExceptionContext ctx, T value, string paramName, string msg) 315public static Exception ExceptParamValue<T>(this IExceptionContext ctx, T value, string paramName, string msg, params object[] args) 323public static Exception ExceptValue(this IExceptionContext ctx, string paramName) 327public static Exception ExceptValue(this IExceptionContext ctx, string paramName, string msg) 331public static Exception ExceptValue(this IExceptionContext ctx, string paramName, string msg, params object[] args) 341public static Exception ExceptEmpty(this IExceptionContext ctx, string paramName) 345public static Exception ExceptEmpty(this IExceptionContext ctx, string paramName, string msg) 349public static Exception ExceptEmpty(this IExceptionContext ctx, string paramName, string msg, params object[] args) 357public static Exception ExceptWhiteSpace(this IExceptionContext ctx, string paramName) 361public static Exception ExceptWhiteSpace(this IExceptionContext ctx, string paramName, string msg) 371public static Exception ExceptDecode(this IExceptionContext ctx) 375public static Exception ExceptDecode(this IExceptionContext ctx, string msg) 379public static Exception ExceptDecode(this IExceptionContext ctx, string msg, params object[] args) 383public static Exception ExceptDecode(this IExceptionContext ctx, Exception inner, string msg) 387public static Exception ExceptDecode(this IExceptionContext ctx, Exception inner, string msg, params object[] args) 395public static Exception ExceptIO(this IExceptionContext ctx) 399public static Exception ExceptIO(this IExceptionContext ctx, string msg) 403public static Exception ExceptIO(this IExceptionContext ctx, string msg, params object[] args) 407public static Exception ExceptIO(this IExceptionContext ctx, Exception inner, string msg) 411public static Exception ExceptIO(this IExceptionContext ctx, Exception inner, string msg, params object[] args) 419public static Exception ExceptNotImpl(this IExceptionContext ctx) 423public static Exception ExceptNotImpl(this IExceptionContext ctx, string msg) 427public static Exception ExceptNotImpl(this IExceptionContext ctx, string msg, params object[] args) 435public static Exception ExceptNotSupp(this IExceptionContext ctx) 439public static Exception ExceptNotSupp(this IExceptionContext ctx, string msg) 443public static Exception ExceptNotSupp(this IExceptionContext ctx, string msg, params object[] args) 451public static Exception ExceptSchemaMismatch(this IExceptionContext ctx, string paramName, string columnRole, string columnName) 455public static Exception ExceptSchemaMismatch(this IExceptionContext ctx, string paramName, string columnRole, string columnName, string expectedType, string actualType) 483public static void Check(this IExceptionContext ctx, bool f) 493public static void Check(this IExceptionContext ctx, bool f, string msg) 508public static void CheckUserArg(this IExceptionContext ctx, bool f, string name) 518public static void CheckUserArg(this IExceptionContext ctx, bool f, string name, string msg) 529public static void CheckParam(this IExceptionContext ctx, bool f, string paramName) 539public static void CheckParam(this IExceptionContext ctx, bool f, string paramName, string msg) 549public static void CheckParamValue<T>(this IExceptionContext ctx, bool f, T value, string paramName, string msg) 561public static T CheckRef<T>(this IExceptionContext ctx, T val, string paramName) where T : class 568public static T CheckRef<T>(this IExceptionContext ctx, T val, string paramName, string msg) where T : class 580public static void CheckValue<T>(this IExceptionContext ctx, T val, string paramName) where T : class 591public static T CheckValue<T>(this IExceptionContext ctx, T val, string paramName, string msg) where T : class 604public static string CheckNonEmpty(this IExceptionContext ctx, string s, string paramName) 617public static string CheckNonWhiteSpace(this IExceptionContext ctx, string s, string paramName) 630public static string CheckNonEmpty(this IExceptionContext ctx, string s, string paramName, string msg) 643public static string CheckNonWhiteSpace(this IExceptionContext ctx, string s, string paramName, string msg) 656public static T[] CheckNonEmpty<T>(this IExceptionContext ctx, T[] args, string paramName) 668public static T[] CheckNonEmpty<T>(this IExceptionContext ctx, T[] args, string paramName, string msg) 680public static ICollection<T> CheckNonEmpty<T>(this IExceptionContext ctx, ICollection<T> args, string paramName) 692public static ICollection<T> CheckNonEmpty<T>(this IExceptionContext ctx, ICollection<T> args, string paramName, string msg) 704public static void CheckDecode(this IExceptionContext ctx, bool f) 714public static void CheckDecode(this IExceptionContext ctx, bool f, string msg) 725public static void CheckIO(this IExceptionContext ctx, bool f) 735public static void CheckIO(this IExceptionContext ctx, bool f, string msg) 741public static void CheckIO(this IExceptionContext ctx, bool f, string msg, params object[] args) 768public static void CheckValueOrNull<T>(this IExceptionContext ctx, T val) where T : class 776private static void DbgFailCore(string msg, IExceptionContext ctx = null) 788private static void DbgFail(IExceptionContext ctx = null) 796private static void DbgFail(IExceptionContext ctx, string msg) 800private static void DbgFailValue(IExceptionContext ctx = null) 808private static void DbgFailValue(IExceptionContext ctx, string paramName) 816private static void DbgFailValue(IExceptionContext ctx, string paramName, string msg) 820private static void DbgFailEmpty(IExceptionContext ctx = null) 828private static void DbgFailEmpty(IExceptionContext ctx, string msg) 842public static void Assert(this IExceptionContext ctx, bool f) 855public static void Assert(this IExceptionContext ctx, bool f, string msg) 868public static void AssertValue<T>(this IExceptionContext ctx, T val) where T : class 882public static void AssertValue<T>(this IExceptionContext ctx, T val, string paramName) where T : class 895public static void AssertValue<T>(this IExceptionContext ctx, T val, string name, string msg) where T : class 908public static void AssertNonEmpty(this IExceptionContext ctx, string s) 921public static void AssertNonWhiteSpace(this IExceptionContext ctx, string s) 934public static void AssertNonEmpty(this IExceptionContext ctx, string s, string msg) 947public static void AssertNonWhiteSpace(this IExceptionContext ctx, string s, string msg) 973public static void AssertNonEmpty<T>(this IExceptionContext ctx, ICollection<T> args) 986public static void AssertNonEmpty<T>(this IExceptionContext ctx, ICollection<T> args, string msg) 1000public static void AssertValueOrNull<T>(this IExceptionContext ctx, T val) where T : class