Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 19, 2009, 11:17:51 PM (15 years ago)
Author:
rgrieder
Message:

Added Exception::handleMessage() (copy from Game::getExceptionMessage) function that returns the exception message (if retrievable) when catching with "…"
and adjusted some exception handlers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/tools/ResourceLocation.cc

    r5738 r5747  
    9797                this->getPath(), this->getResourceGroup());
    9898        }
    99         catch (const std::exception& ex)
     99        catch (...)
    100100        {
    101             COUT(1) << "Removing of a ResourceLocation failed: " << ex.what() << std::endl;
     101            COUT(1) << "Removing of a ResourceLocation failed: " << Exception::handleMessage() << std::endl;
    102102        }
    103103    }
Note: See TracChangeset for help on using the changeset viewer.