Added a wrapper method to instantiate_object(), where we catch any

possible exception thrown from the constructor called by the function 
itself, for safety. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21750 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2007-07-30 14:21:41 +00:00
parent 685271a77a
commit 60be800755
2 changed files with 20 additions and 2 deletions
+2
View File
@@ -99,6 +99,8 @@ class BShelf : public BHandler {
status_t _AddReplicant(BMessage* data,
BPoint* location, uint32 uniqueID);
status_t _GetProperty(BMessage* message, BMessage* reply);
static BArchivable* _InstantiateObject(BMessage *archive, image_id *image);
private:
BView* fContainerView;