internal CssErrorEventArgs(CssException exc, ContextError error) { Error = error; Exception = exc; }
protected void OnCssError(CssException exception) { if (CssError != null && exception != null && !Settings.IgnoreAllErrors) { // format our CSS error code string errorCode = "CSS{0}".FormatInvariant((exception.Error & (0xffff))); // if we have no errors in our error ignore list, or if we do but this error code is not in // that list, fire the event to whomever is listening for it. if (!Settings.IgnoreErrorCollection.Contains(errorCode)) { CssError(this, new CssErrorEventArgs(exception, new ContextError( exception.Severity < 2, exception.Severity, GetSeverityString(exception.Severity), errorCode, exception.HelpLink, FileContext, exception.Line, exception.Char, 0, 0, exception.Message))); } } }