Version 1
14.03.2010 17:47:20
Dies ist die aktuelle Version
Wie setze ich Exceptions in C# am besten ein?
Es gibt ja bekanntlich einige Nutzungsmöglichkeiten für Exceptionhandler in C#:
catch(Exception)
{ }
catch(Exception)
{ throw; }
catch(Exception e)
{ Debug.WriteLine(e);}
catch(Exception e)
{ throw new Exception ("fehler!");}
catch(Exception e)
{ MessageBox.Show(e);}
Wann setze ich die jeweils ein?
|
781
●
2
●
7
|