32 #define YUILogComponent "ui"
35 #include "YUIException.h"
43 std::string str( _file );
44 str +=
"(" + _func +
"):";
46 char formatted_number[ 20 ];
47 sprintf( formatted_number,
"%u", _line );
49 str += formatted_number;
83 std::ostringstream str;
97 YUIException::dumpError( std::ostream & str )
const
99 return dumpOn( str << _where <<
": " );
106 return obj.dumpError( str );
113 return strerror( errno_r );
120 std::string ret( msg );
129 const char *
const prefix )
131 YUILog::warning( YUILogComponent,
132 location.
file().c_str(),
134 location.
func().c_str() )
135 <<
"\t" << prefix <<
" " << exception.
asString() << std::endl;
145 <<
" has no property named \""
152 return str <<
"Unknown property name \""
163 std::string widgetClass;
166 widgetClass = std::string(
widget()->widgetClass() ) +
"::";
168 return str <<
"Property type mismatch: "
182 std::string widgetClass;
185 widgetClass = std::string(
widget()->widgetClass() ) +
"::";
187 return str <<
"Property "
198 std::string widgetClass;
201 widgetClass = std::string(
widget()->widgetClass() ) +
"::";
203 return str <<
"Bad argument for property "