Advertisement
Guest User

Untitled

a guest
Aug 27th, 2015
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. int main()
  2. {
  3. Game game;
  4. try
  5. {
  6. game.run();
  7. }
  8. catch (BadResolutionException & e)
  9. {
  10. Notification::showErrorMessage(e.what(), "ERROR: Resolution");
  11. return 1;
  12. }
  13. catch (BadAssetException & e)
  14. {
  15. Notification::showErrorMessage(e.what(), "ERROR: Assets");
  16. return 1;
  17. }
  18. catch (std::bad_alloc & e)
  19. {
  20. Notification::showErrorMessage(e.what(), "ERROR: Memory");
  21. return 1;
  22. }
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement