MCPcopy Create free account
hub / github.com/PDAL/PDAL / handle

Method handle

pdal/private/gdal/ErrorHandler.cpp:161–179  ·  view source on GitHub ↗

Callback for GDAL error. \param level Error level \param num Error number \param msg Error message. */

Source from the content-addressed store, hash-verified

159 \param msg Error message.
160*/
161void ErrorHandler::handle(int level, int num, char const* msg)
162{
163 std::lock_guard<std::mutex> lock(m_mutex);
164 std::ostringstream oss;
165
166 m_errorNum = num;
167 if (level == CE_Failure || level == CE_Fatal)
168 {
169 oss << "GDAL failure (" << num << ") " << msg;
170 if (m_log)
171 m_log->get(LogLevel::Error) << oss.str() << std::endl;
172 }
173 else if (m_debug && level == CE_Debug)
174 {
175 oss << "GDAL debug: " << msg;
176 if (m_log)
177 m_log->get(LogLevel::Debug) << oss.str() << std::endl;
178 }
179}
180
181ErrorHandlerSuspender::ErrorHandlerSuspender()
182{

Callers 1

ErrorHandler.cppFile · 0.80

Calls 2

strMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected