const string &Formatter::str() const
{
if(pos!=fmt.end())
- throw Exception("Too few arguments for format");
+ throw format_error("Too few arguments for format");
return result;
}
{
++pos;
if(pos==fmt.end())
- throw Exception("Malformed format string");
+ throw format_error("Malformed format string");
if(*pos!='%')
break;
}
Fmt Formatter::get_conversion()
{
if(pos==fmt.end())
- throw Exception("Too many arguments for format");
+ throw format_error("Too many arguments for format");
string::iterator i = pos;
for(; i!=fmt.end(); ++i)
break;
if(i==fmt.end())
- throw Exception("Malformed format string");
+ throw format_error("Malformed format string");
++i;
string c(pos, i);