Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

wrong code for exceptions analyse

tolikpunkoff Oct 30th, 2018 70 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. try
  2. {
  3.     Process.Start(psi);
  4. }
  5. catch (Exception ex)
  6. {
  7.     if (admin) //админские права уже были, что-то испортилось
  8.     {
  9.         ErrorMessage = ex.Message;
  10.         return false;
  11.     }
  12.    //иначе может быть просто нажали отмену в UAC
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top