public RSExceptionCreatedEventArgs(RSException exception) { if (exception == null) { throw new ArgumentNullException("exception"); } this.m_e = exception; }
protected virtual void AddWarnings(XmlDocument doc, XmlNode parent) { RSException ex = base.InnerException as RSException; if (ex != null) { ex.AddWarnings(doc, parent); } }
public bool ContainsErrorCode(ErrorCode code) { for (RSException ex = this; ex != null; ex = (ex.InnerException as RSException)) { if (code == ex.Code) { return(true); } } return(false); }
public RSException(RSException inner) : base(inner.Message, inner) { this.m_ErrorCode = inner.m_ErrorCode; this.m_ActorUri = inner.m_ActorUri; this.m_ProductName = inner.m_ProductName; this.m_ProductVersion = inner.m_ProductVersion; this.m_ProductLocaleID = inner.m_ProductLocaleID; this.m_CountryLocaleID = inner.m_CountryLocaleID; this.m_OS = inner.m_OS; this.m_AdditionalTraceMessage = inner.m_AdditionalTraceMessage; }
private XmlNode AddMoreInformationForException(XmlDocument doc, XmlNode parent, Exception e, StringBuilder errorMsgBuilder) { XmlNode xmlNode = RSException.CreateMoreInfoNode(e.Source, doc, parent); if (xmlNode != null) { string text = null; RSException ex = e as RSException; if (ex != null) { text = ex.Code.ToString(); } string helpLink = this.CreateHelpLink(typeof(ErrorStrings).FullName, text); string filteredMsg = RSException.AddMessageToMoreInfoNode(doc, xmlNode, text, e.Message, helpLink); RSException.BuildExceptionMessage(e, filteredMsg, errorMsgBuilder); } return(xmlNode); }
public override string ToString() { if (this.m_toString == null) { this.m_toString = RSException.TrimExtraLength(base.ToString()); if (RSException.IsClientLocal()) { this.m_toString = base.GetType() + ": " + this.Message; for (Exception innerException = base.InnerException; innerException != null; innerException = innerException.InnerException) { object toString = this.m_toString; this.m_toString = toString + " ---> " + innerException.GetType() + ": " + innerException.Message; } } this.m_toString = RSException.TrimExtraLength(this.m_toString); } return(this.m_toString); }
public void AddMoreInformation(XmlDocument doc, XmlNode parent, bool enableRemoteErrors, StringBuilder errorMsgBuilder) { Exception ex = this; XmlNode parent2 = parent; if (this.SkipTopLevelMessage) { ex = base.InnerException; } bool flag = enableRemoteErrors || RSException.IsClientLocal(); while (true) { if (ex != null) { RSException ex2 = ex as RSException; if (ex2 != null) { parent2 = ex2.AddMoreInformationForThis(doc, parent2, errorMsgBuilder); if (!flag && ex2 is SharePointException && ex2.InnerException != null) { parent2 = this.AddMoreInformationForException(doc, parent2, ex2.InnerException, errorMsgBuilder); } } else { if (!flag) { break; } parent2 = this.AddMoreInformationForException(doc, parent2, ex, errorMsgBuilder); } ex = ex.InnerException; continue; } return; } Exception e = new Exception(RSException.ErrorNotVisibleOnRemoteBrowsers); parent2 = this.AddMoreInformationForException(doc, parent2, e, errorMsgBuilder); }