28 namespace ExceptionImp
30 std::string join( std::string s1 ,
const std::string & s2 )
32 if( !s2.empty() ) s1.append(
": ").append(s2) ;
35 std::string join( std::string s1 ,
const std::string & s2 ,
const std::string & s3 )
37 if( !s2.empty() ) s1.append(
": ").append(s2) ;
38 if( !s3.empty() ) s1.append(
": ").append(s3) ;
41 std::string join( std::string s1 ,
const std::string & s2 ,
const std::string & s3 ,
42 const std::string & s4 )
44 if( !s2.empty() ) s1.append(
": ").append(s2) ;
45 if( !s3.empty() ) s1.append(
": ").append(s3) ;
46 if( !s4.empty() ) s1.append(
": ").append(s4) ;
49 std::string join( std::string s1 ,
const std::string & s2 ,
const std::string & s3 ,
50 const std::string & s4 ,
const std::string & s5 )
52 if( !s2.empty() ) s1.append(
": ").append(s2) ;
53 if( !s3.empty() ) s1.append(
": ").append(s3) ;
54 if( !s4.empty() ) s1.append(
": ").append(s4) ;
55 if( !s5.empty() ) s1.append(
": ").append(s5) ;
62 std::runtime_error(what?what:
"")
67 std::runtime_error(what)
72 std::runtime_error(ExceptionImp::join(what,more))
77 std::runtime_error(ExceptionImp::join(what,more))
82 std::runtime_error(ExceptionImp::join(what,more1,more2))
87 std::runtime_error(ExceptionImp::join(what,more1,more2))
92 const std::string & more3 ) :
93 std::runtime_error(ExceptionImp::join(what,more1,more2,more3))
98 const std::string & more3 ) :
99 std::runtime_error(ExceptionImp::join(what,more1,more2,more3))
Exception(const char *what)
Constructor.