示例#1
0
        public static ExceptionStatus ShowExceptionText(string message, Exception ex)
        {
            ExceptionStatus exceptionStatus = new ExceptionStatus();

            exceptionStatus.ex      = ex;
            exceptionStatus.message = message;

            return(exceptionStatus);
        }
        public static ExceptionStatus ShowExceptionText(string message, Exception ex)
        {
            ExceptionStatus exceptionStatus = new ExceptionStatus();

            exceptionStatus.ex = ex;
            exceptionStatus.message = message;

            return exceptionStatus;
        }
示例#3
0
        public static ExceptionStatus ShowExceptionText(Exception ex)
        {
            ExceptionStatus exceptionStatus = new ExceptionStatus();

            exceptionStatus.ex      = ex;
            exceptionStatus.message = ex is LQTUserException?
                                      ex.ToString() : "Error while trying to read or write into the database, please contact your IT administrator";

            return(exceptionStatus);
        }
        public static ExceptionStatus ShowExceptionText(Exception ex)
        {
            ExceptionStatus exceptionStatus = new ExceptionStatus();

            exceptionStatus.ex = ex;
            exceptionStatus.message = ex is LQTUserException ?
                ex.ToString() : "Error while trying to read or write into the database, please contact your IT administrator";

            return exceptionStatus;
        }
示例#5
0
 public FrmShowError(string errorMessage)
 {
     InitializeComponent();
     _exStatus = new ExceptionStatus();
     _exStatus.message = errorMessage;
 }
示例#6
0
 public FrmShowError(ExceptionStatus exstatus )
 {
     InitializeComponent();
     _exStatus = exstatus;
 }