示例#1
0
        public Connect()
        {
            try
            {
                OMETrace.Initialize();
            }
            catch (Exception ex)
            {
                ex.ToString();
            }

            try
            {
                ExceptionHandler.UpdateExceptionLogginInfo();

                ExceptionHandler.Initialize();
            }
            catch (Exception ex)
            {
                ex.ToString();//ignore
            }

            try
            {
                ApplicationManager.CheckLocalAndSetLanguage();
            }
            catch (Exception ex)
            {
                ex.ToString();//ignore
            }
        }
        static void InitalizeException()
        {
            try
            {
                OMETrace.Initialize();
            }
            catch (Exception ex)
            {
                ex.ToString();
            }

            try
            {
                ExceptionHandler.Initialize();
            }
            catch (Exception ex)
            {
                ex.ToString(); //ignore
            }
        }
示例#3
0
        public string ConnectToDatabase(ConnectionDetails currConnectionDetails, bool checkCustomConfig)
        {
            string exceptionString = dbInteraction.ConnectoToDB(currConnectionDetails, checkCustomConfig);

            try
            {
                OMETrace.Initialize();
            }
            catch (Exception ex)
            {
                ex.ToString(); //ignore
            }
            try
            {
                ExceptionHandler.Initialize();
            }
            catch (Exception ex)
            {
                ex.ToString(); //ignore
            }
            return(exceptionString);
        }