private void HandleException(Exception e, string message, bool isError, bool showMessage) { if (e != null) { this.exception = e; this.message = e.Message; this.ErrorSource = e.Source + "\r\n\r\n" + e.StackTrace; } this.isError = isError; if (message != "") { this.message = message; } if (exceptionLog != null) { exceptionLog.WirteLog(this); } if (showMessage) { //MessageRender.ShowMessage(message + "\r\n\r\nSource::" + errorSource, isError); MessageRender.ShowMessage(message, isError); } }
/// <summary> /// Redirect to Error Page /// </summary> public void ShowMessage(Exception e, bool isError) { this.Exception = e; MessageRender.ShowMessage(this, isError); }
/// <summary> /// Redirect to Error Page /// </summary> public void ShowMessage(string message) { MessageRender.ShowMessage(message); }
/// <summary> /// Redirect to Error Page /// </summary> public void ShowMessage(string message, bool isError) { MessageRender.ShowMessage(message, isError); }
/// <summary> /// This method is for windows application /// </summary> public void ShowMessage() { MessageRender.ShowMessage(this); }