Inheritance: InvalidExpressionException
Exemplo n.º 1
0
        private static EvaluateException _Eval(string error, Exception?innerException)
        {
            EvaluateException e = new EvaluateException(error /*, innerException*/);

            ExceptionBuilder.TraceExceptionAsReturnValue(e);
            return(e);
        }
Exemplo n.º 2
0
        private static EvaluateException _Eval(string error)
        {
            EvaluateException e = new EvaluateException(error);

            ExceptionBuilder.TraceExceptionAsReturnValue(e);
            return(e);
        }
Exemplo n.º 3
0
 // ���������� ���������� ������ ���������� ��������� � ����������� ���� ������ ������
 private static void HandleEvaluateException(EvaluateException evaluateException)
 {
     ShowExceptionDialog(evaluateException, "������ ���������� ��������� � ���� ������� ������ ������. " + NotAllowedExceptionMessage, "����������� ���� ������ ��������", MessageBoxIcon.Information, true);
 }
Exemplo n.º 4
0
        public void OpenExcel(string path)
        {
            try
            {
                string exlspec = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + FILE_PATH + ";Extended Properties='Excel 12.0;HDR=NO;IMEX=1;'";
                con = new OleDbConnection(exlspec);
                con.Open();
                dtt = new DataTable();
                dtt = con.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
                SheetNameList = new String[dtt.Rows.Count];

                int i = 0;
                do
                {
                    SheetNameList[i] = dtt.Rows[i]["TABLE_NAME"].ToString();
                    i++;
                } while (i < dtt.Rows.Count);
                Quick_Sort(SheetNameList);
            }
            catch (Exception mes)
            {
                mes = new EvaluateException("" + DateTime.Now + " 3D Error : Can't find the file or can not open file...." + '\t' + "");
                ErrorLogger(mes.Message);
            }
        }
 static private EvaluateException _Eval(string error) {
     EvaluateException e = new EvaluateException(error);
     ExceptionBuilder.TraceExceptionAsReturnValue(e);
     return e;
 }
 static private EvaluateException _Eval(string error, Exception innerException) {
     EvaluateException e = new EvaluateException(error/*, innerException*/); // 
     ExceptionBuilder.TraceExceptionAsReturnValue(e);
     return e;
 }