Original Post
Hello, I'm wondering when I should use exceptions. Right now I have something like this:
...
try
{
GameApp game(inst);
game.Run();
}
catch(core::Exception& e)
{
e.DisplayMessageBox();
e.WriteToLogFile();
}
...
If for example during my graphics initialization something fails (can't create D3DDevice, etc.) I throw an exception and the user gets a message box with nice error description. For stuff like this is it better to use Logging via I/O, or if-statements with MessageBox (like in NeHe tutorials for example). Or is it just a matter of taste? Greetings, Thomas