internal static void RenderErrorDiv(OwaContext owaContext, TextWriter writer, string message, string messageDetails, OwaEventHandlerErrorCode errorCode, Exception exception) { if (message == null) { throw new ArgumentNullException("message"); } if (writer == null) { throw new ArgumentNullException("writer"); } writer.Write("<div id=err _msg=\""); Utilities.HtmlEncode(message, writer); writer.Write("\""); if (messageDetails != null) { writer.Write(" _details=\""); Utilities.HtmlEncode(messageDetails, writer); writer.Write("\""); } if (errorCode != OwaEventHandlerErrorCode.NotSet) { writer.Write(" _cd="); writer.Write((int)errorCode); } writer.Write(">"); if (Globals.ShowDebugInformation && exception != null) { writer.Write("<div id=debugInfo>"); Utilities.RenderDebugInformation(writer, owaContext, exception); writer.Write("</div>"); } writer.Write("</div>"); }
// Token: 0x06000E62 RID: 3682 RVA: 0x0005BB7C File Offset: 0x00059D7C protected void RenderPartialFailure(string messageHtml, string titleHtml, ButtonDialogIcon icon, OwaEventHandlerErrorCode errorCode) { if (messageHtml == null) { throw new ArgumentNullException("message"); } this.Writer.Write("<div id=err _msg=\""); this.Writer.Write(messageHtml); this.Writer.Write("\""); if (errorCode != OwaEventHandlerErrorCode.NotSet) { this.Writer.Write(" _cd="); this.Writer.Write((int)errorCode); } if (titleHtml != null) { this.Writer.Write(" _ttl=\""); this.Writer.Write(titleHtml); this.Writer.Write("\""); } if (icon != ButtonDialogIcon.NotSet) { this.Writer.Write(" _icn=\""); this.Writer.Write((int)icon); this.Writer.Write("\""); } this.Writer.Write("></div>"); }
internal static void RenderError(OwaContext owaContext, TextWriter writer, string message, string messageDetails, OwaEventHandlerErrorCode errorCode, Exception exception) { if (owaContext == null) { throw new ArgumentNullException("owaContext"); } owaContext.HttpContext.Response.Clear(); OwaEventHttpHandler.RenderErrorDiv(owaContext, writer, message, messageDetails, errorCode, exception); if (owaContext.CustomErrorInfo != null) { writer.Write("<div id=divCstInfo"); foreach (KeyValuePair <string, string> keyValuePair in owaContext.CustomErrorInfo) { writer.Write(" "); writer.Write(keyValuePair.Key); writer.Write("="); writer.Write("\""); writer.Write(Utilities.HtmlEncode(keyValuePair.Value)); writer.Write("\""); } writer.Write("></div>"); owaContext.CustomErrorInfo = null; } owaContext.HttpContext.Response.ContentType = Utilities.GetContentTypeString(OwaEventContentType.Html); owaContext.HttpContext.Response.Headers.Remove("X-OWA-EventResult"); owaContext.HttpContext.Response.AppendHeader("X-OWA-EventResult", "1"); }
// Token: 0x06000E5F RID: 3679 RVA: 0x0005BB24 File Offset: 0x00059D24 protected void RenderPartialFailure(Strings.IDs messageString, OwaEventHandlerErrorCode errorCode) { this.RenderPartialFailure(messageString, null, ButtonDialogIcon.NotSet, errorCode); }
// Token: 0x06000E61 RID: 3681 RVA: 0x0005BB50 File Offset: 0x00059D50 protected void RenderPartialFailure(Strings.IDs messageString, Strings.IDs?titleString, ButtonDialogIcon icon, OwaEventHandlerErrorCode errorCode) { this.RenderPartialFailure(LocalizedStrings.GetHtmlEncoded(messageString), (titleString != null) ? LocalizedStrings.GetHtmlEncoded(titleString.Value) : null, icon, errorCode); }
public OwaEventHandlerException(string message, string description, OwaEventHandlerErrorCode errorCode) : this(message, description, errorCode, null, null) { }
public OwaEventHandlerException(string message, string description, OwaEventHandlerErrorCode errorCode, bool hideDebugInformation) : this(message, description, errorCode, hideDebugInformation, null, null) { }
public OwaEventHandlerException(string message, string description, OwaEventHandlerErrorCode errorCode, Exception innerException, object thisObject) : this(message, description, errorCode, false, innerException, thisObject) { }
public OwaEventHandlerException(string message, string description, OwaEventHandlerErrorCode errorCode, bool hideDebugInformation, Exception innerException, object thisObject) : base(message, innerException, thisObject) { this.description = description; this.errorCode = errorCode; this.hideDebugInformation = hideDebugInformation; }
public ErrorInformation(string message, string details, OwaEventHandlerErrorCode errorCode) { this.message = message; this.messageDetails = details; this.OwaEventHandlerErrorCode = errorCode; }