MCPcopy Create free account
hub / github.com/apache/cloudberry / AppendDetailMessage

Method AppendDetailMessage

contrib/pax_storage/src/cpp/exceptions/CException.cc:241–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239CException::ExType CException::EType() const { return m_extype_; }
240
241void CException::AppendDetailMessage(const char *message) {
242 if (m_errormsg_len_ >= MAX_SIZE_OF_ERROR_MESSAGE - 1) {
243 return;
244 }
245
246 strncpy(m_errormsg_ + m_errormsg_len_, message,
247 (MAX_SIZE_OF_ERROR_MESSAGE - 1) - m_errormsg_len_);
248 m_errormsg_len_ += strlen(message);
249 if (m_errormsg_len_ > MAX_SIZE_OF_ERROR_MESSAGE - 1) {
250 m_errormsg_len_ = MAX_SIZE_OF_ERROR_MESSAGE - 1;
251 }
252}
253
254void CException::AppendDetailMessage(const std::string &message) {
255 AppendDetailMessage(message.c_str());

Callers 2

FetchTupleMethod · 0.80
ScanAnalyzeNextTupleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected