Ignore:
Timestamp:
09/01/15 17:15:42 (9 years ago)
Author:
rlacroix
Message:

Rephrase some error messages so that they are clearer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/type/type_ref_impl.hpp

    r591 r680  
    198198  { 
    199199    if (empty) ERROR("template <typename T> void CType_ref<T>::checkEmpty(void)", 
    200                      <<"Type_ref reference is not assigned") ; 
     200                     <<"Data reference is not initialized.") ; 
    201201  } 
    202202                      
     
    207207  { 
    208208    if (!type.toBuffer(buffer)) ERROR("CBuffer& operator<<(CBuffer& buffer, CType<T>& type)", 
    209                                            <<"Buffer remain size is to low for size type") ; 
     209                                      << "Not enough free space in buffer to queue the data."); 
    210210    return buffer ; 
    211211  } 
     
    215215  { 
    216216    if (!CType_ref<T>(type).toBuffer(buffer)) ERROR("CBufferOut& operator<<(CBufferOut& buffer, T& type)", 
    217                                              <<"Buffer remain size is to low for size type") ;       
     217                                                    << "Not enough free space in buffer to queue the data."); 
    218218    return buffer ; 
    219219  } 
     
    223223  { 
    224224    if (! CType_ref<T>(type).fromBuffer(buffer)) ERROR(" template <typename T> CBufferIn& operator>>(CBufferIn& buffer, T& type)", 
    225                                                 <<"Buffer remain size is to low for size type") ; 
     225                                                       << "Not enough data in buffer to unqueue the data."); 
    226226    return buffer ; 
    227227  } 
     
    231231  { 
    232232    if (! type.fromBuffer(buffer) ) ERROR("CBuffer& operator<<(CBuffer& buffer, CType<T>& type)", 
    233                                            <<"Buffer remain size is to low for size type") ; 
    234     return buffer ; 
    235   } 
    236  
    237  
    238 /* 
    239   template <typename T> 
    240   CMessage& operator<<(CMessage& msg, const CType_ref<T>& type) 
    241   { 
    242     msg.push(type) ; 
    243     return msg ; 
    244   } 
    245 */ 
     233                                          << "Not enough data in buffer to unqueue the data."); 
     234    return buffer ; 
     235  } 
    246236 
    247237  template <typename T> 
Note: See TracChangeset for help on using the changeset viewer.