Changeset 474

Show
Ignore:
Timestamp:
08/05/09 13:29:30 (15 years ago)
Author:
vbarta
Message:

reverted settings load & save to throw UIException (std::exception usage didn't compile with gcc 4.2.3)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/user_info.h

    r471 r474  
    283283                } catch ( SettingException sttng_xcptn ) { 
    284284                        string msg = "the method " + class_name + ".from_setting(Setting&) has thrown a SettingException. Try to correct this method. Check path \"" + sttng_xcptn.getPath() + "\"."; 
    285                         throw exception ( msg.c_str() ); 
    286                 } catch ( UIException uixcptn ) { 
    287                         string msg = "the method " + class_name + ".from_setting(Setting&) has thrown an UIException \"" + uixcptn.message + "\" Try to correct this method. Check path \"" + uixcptn.path + "\"."; 
    288                         throw exception ( msg.c_str() ); 
    289                 } catch ( exception xcptn ) { 
    290                         string msg = "the method " + class_name + ".from_setting(Setting&) has thrown a general exception \"" + xcptn.what() + "\" Try to correct this method. Check path \"" + element.getPath() + "\"."; 
    291                         throw exception ( msg.c_str() ); 
     285                        throw UIException(msg, link.result); 
    292286                } 
    293287        } 
     
    474468                        instance->to_setting ( set ); 
    475469                } catch ( SettingException sttng_xcptn ) { 
    476                         string msg = "the method " + class_name + ".to_setting(Setting&) has thrown a SettingException. Try to correct this method. Check path \"" + sttng_xcptn.getPath() + "\"."; 
    477                         throw exception ( msg.c_str() ); 
    478                 } catch ( UIException uixcptn ) { 
    479                         string msg = "the method " + class_name + ".to_setting(Setting&) has thrown an UIException \"" + uixcptn.message + "\" Try to correct this method. Check path \"" + uixcptn.path + "\"."; 
    480                         throw exception ( msg.c_str() ); 
    481                 } catch ( exception xcptn ) { 
    482                         string msg = "the method " + class_name + ".to_setting(Setting&) has thrown a general exception \"" + xcptn.what() + "\" Try to correct this method. Check path \"" + element.getPath() + "\"."; 
    483                         throw exception ( msg.c_str() ); 
     470                    string msg = "the method "; 
     471                    msg += class_name; 
     472                    msg += ".to_setting(Setting&) has thrown a SettingException. Try to correct this method."; 
     473                    throw UIException(msg, sttng_xcptn.getPath()); 
    484474                } 
    485475        }