7 :
std::
exception(), ost_(), category_(aCategory), what_(), context_(), additionalInfo_(), alreadyPrinted_(
false) {}
52 if (!message.empty()) {
53 unsigned sz = message.size() - 1;
54 if (message[sz] !=
'\n' && message[sz] !=
' ')
69 if (!message.empty() && message[message.size() - 1] !=
'\n') {
105 return what_.c_str();
109 std::ostringstream ost;
112 ost <<
"An exception of category '" <<
category_ <<
"' occurred.\n";
114 ost <<
"An exception of category '" <<
category_ <<
"' occurred while\n";
116 for (std::list<std::string>::const_reverse_iterator
i =
context_.rbegin(), iEnd =
context_.rend();
i != iEnd;
118 ost <<
" [" << count <<
"] " << *
i <<
"\n";
123 if (!centralMessage.empty()) {
124 ost <<
"Exception Message:\n";
125 ost << centralMessage;
126 if (centralMessage[centralMessage.size() - 1] !=
'\n') {
132 ost <<
" Additional Info:\n";
137 ost <<
" [" << c <<
"] " << *
i <<
"\n";
188 std::list<std::string> returnValue;
void setAlreadyPrinted(bool value)
std::list< std::string > additionalInfo_
void append(Exception const &another)
virtual std::string explainSelf() const
void setContext(std::list< std::string > const &context)
std::string const & category() const
std::string message() const
char const * what() const override
void setAdditionalInfo(std::list< std::string > const &info)
bool alreadyPrinted() const
std::list< std::string > const & additionalInfo() const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::list< std::string > const & context() const
virtual int returnCode_() const
Exception & operator=(Exception const &other)
void addAdditionalInfo(std::string const &info)
Namespace of DDCMS conversion namespace.
std::list< std::string > history() const
void addContext(std::string const &context)
Exception(std::string const &aCategory)
std::list< std::string > context_
void init(std::string const &message)
void clearAdditionalInfo()
void swap(Exception &other)
virtual Exception * clone() const