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 :
https://github.com/cocos2d/cocos2d-x/blob/gles20/cocos2dx/platform/android/CCFileUtils.cpp\#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

Status:New
Start date:2012-08-20
Priority:Normal
Due date:
Assignee:folecr
% Done:

0%

Category:android
Target version:-