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 } }
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); }