| 29 | return buffer_.c_str(); |
| 30 | } |
| 31 | std::string Exception::ComposeWhatString_() const noexcept |
| 32 | { |
| 33 | try { |
| 34 | std::ostringstream oss; |
| 35 | oss << GetNote(); |
| 36 | if (pTrace_) { |
| 37 | oss << "\n" << GetTraceString(); |
| 38 | } |
| 39 | return oss.str(); |
| 40 | } |
| 41 | catch (...) {} |
| 42 | return {}; |
| 43 | } |
| 44 | const std::string& Exception::GetNote() const |
| 45 | { |
| 46 | return note_; |
nothing calls this directly
no test coverage detected