Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 18, 2010, 12:08:05 AM (14 years ago)
Author:
rgrieder
Message:

Only catch exceptions you actually expect. And rethrow unknown exceptions ("…" can also catch internal Microsoft exceptions like floating point exception).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/util/Exception.cc

    r6417 r7174  
    3434
    3535#include "Exception.h"
     36
    3637#include <CEGUIExceptions.h>
     38#include "Debug.h"
    3739
    3840namespace orxonox
     
    115117        catch (...)
    116118        {
    117             return "Unknown exception";
     119            COUT(0) << "BIG WARNING: Unknown exception type encountered."
     120                    << "Rethrowing" << endl;
     121            throw;
    118122        }
    119123    }
Note: See TracChangeset for help on using the changeset viewer.