/**
* Exception
*/
- DeclException1 (ExcInvalidCharacter,
- std::string,
+ DeclException2 (ExcInvalidCharacter,
+ std::string, size_t,
<< "Please use only the characters [a-zA-Z0-9_<>()] for" << std::endl
<< "description strings since some graphics formats will only accept these."
<< std::endl
- << "The string you gave was <" << arg1 << ">.");
+ << "The string you gave was <" << arg1
+ << ">, the invalid character is <" << arg1[arg2]
+ << ">." << std::endl);
/**
* Exception
*/
/**
* Exception
*/
- DeclException1 (ExcInvalidCharacter,
- std::string,
+ DeclException2 (ExcInvalidCharacter,
+ std::string, size_t,
<< "Please use only the characters [a-zA-Z0-9_<>()] for" << std::endl
- << "description strings since AVS will only accept these." << std::endl
- << "The string you gave was <" << arg1 << ">.");
+ << "description strings since some graphics formats will only accept these."
+ << std::endl
+ << "The string you gave was <" << arg1
+ << ">, the invalid character is <" << arg1[arg2]
+ << ">." << std::endl);
/**
* Exception
*/
Assert (names[i].find_first_not_of("abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789_<>()") == std::string::npos,
- ExcInvalidCharacter (names[i]));
+ ExcInvalidCharacter (names[i],
+ names[i].find_first_not_of("abcdefghijklmnopqrstuvwxyz"
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "0123456789_<>()")));
DataEntry new_entry (&vec, names);
if (actual_type == type_dof_data)
#else
std::ostrstream namebuf;
#endif
- namebuf << name << '_' << i << std::ends;
- names[i] = namebuf.str();
+ namebuf << '_' << i << std::ends;
+ names[i] = name + namebuf.str().c_str();
};
};
Assert (names[i].find_first_not_of("abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"0123456789_<>()") == std::string::npos,
- ExcInvalidCharacter (names[i]));
+ ExcInvalidCharacter (names[i],
+ names[i].find_first_not_of("abcdefghijklmnopqrstuvwxyz"
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "0123456789_<>()")));
if (vec.size() == dof_handler->n_dofs())
{