예제 #1
0
        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);
            }
        }
예제 #2
0
 /// <summary>
 /// Redirect to Error Page
 /// </summary>
 public void ShowMessage(Exception e, bool isError)
 {
     this.Exception = e;
     MessageRender.ShowMessage(this, isError);
 }
예제 #3
0
 /// <summary>
 /// Redirect to Error Page
 /// </summary>
 public void ShowMessage(string message)
 {
     MessageRender.ShowMessage(message);
 }
예제 #4
0
 /// <summary>
 /// Redirect to Error Page
 /// </summary>
 public void ShowMessage(string message, bool isError)
 {
     MessageRender.ShowMessage(message, isError);
 }
예제 #5
0
 /// <summary>
 /// This method is for windows application
 /// </summary>
 public void ShowMessage()
 {
     MessageRender.ShowMessage(this);
 }