New issue
 Projects > cocos2d-x > Issues > Bug #1434

Add exception for failures in file system (instead of popupNotify)

Bug #1434 [New]
folecr 2012-08-20 20:32

See code here :\#L130

Instead of checks for isPopupNotify() and displaying a UI popup on file system failures, throw a C++ exception.

This will allow :
* Developers to handle exceptions as necessary
* Script bindings to translate this exception to the scripting language (for example JS can translate this correctly to a JS exception)
* Cleaner code in CCFileUtils
* Maybe template/sample code can have a default exception to preserve current behaviour if this is absolutely necessary

Atom PDF

Start date:2012-08-20
Due date:
% Done:


Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.