public static IExceptionHandler GetHandler(IExceptionHandlerInfo info) { if (_handler == null) return null; if (!_handler.CanCatch(info)) return null; return _handler; }
/// <summary> /// Gets the <see cref="IExceptionHandler" /> instance that can handle the current exception. /// </summary> /// <param name="info"> /// The <see cref="IExceptionHandlerInfo" /> instance that describes the context of the thrown /// exception. /// </param> /// <returns>An exception handler.</returns> public static IExceptionHandler GetHandler(IExceptionHandlerInfo info) { if (_handler == null) { return(null); } if (!_handler.CanCatch(info)) { return(null); } return(_handler); }