Changeset 10350
- Timestamp:
- 04/10/11 10:39:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimDescriptionService.cc
r10317 r10350 62 62 //! 63 63 //! @throws 64 //! If a server name couldn't be reliably determined a runtime_error 65 //! exception is thrown. 64 //! If a server name couldn't be reliably determined a logic_error 65 //! exception is thrown; if the given description contains a '\n' 66 //! also a logic_error is thrown. 66 67 // 67 68 DimDescriptionService::DimDescriptionService(const std::string &name, const std::string &desc) … … 72 73 const size_t p = name.find_first_of('/'); 73 74 if (p==string::npos) 74 throw runtime_error("Could not determine server name");75 throw logic_error("Could not determine server name"); 75 76 76 77 service = name.substr(0, p); 77 78 } 79 80 if (desc.find_first_of('\n')!=string::npos) 81 throw logic_error("Description for "+name+" contains '\\n'"); 78 82 79 83 service += "/SERVICE_DESC";
Note:
See TracChangeset
for help on using the changeset viewer.