Try Catch
try { string s = null; ProcessString(s); } catch (Exception e) { // handle the error
} finally { // close all open connections }
The working order should be: first the most specific exception and at last the most general exceptions.
try { string s = null; ProcessString(s); } catch (Exception e) { // handle the error
} finally { // close all open connections }
The working order should be: first the most specific exception and at last the most general exceptions.