public List <StartupException> GetStartupExceptionsByType(StartupError type) { if (StartupExceptions == null) { return(null); } return(StartupExceptions.Where(st => st.Error == type).ToList()); }
private static void RaiseStartupError(Assembly assembly, Type startupType, Exception ex) { foreach (var _delegate in StartupError.GetInvocationList()) { try { _delegate.DynamicInvoke(assembly, startupType, ex); } catch { } } }
private void ProcessError(StartupError error) { Error = error; Engine.Services.StartupExceptions.Add(this); }
protected StartupException(SerializationInfo info, StreamingContext context, StartupError error) : base(info, context) { ProcessError(error); }
public StartupException(string message, Exception innerException, StartupError error) : base(message, innerException) { ProcessError(error); }
public StartupException(string message, StartupError error) : base(message) { ProcessError(error); }