greenplumn CErrorHandler 源码
greenplumn CErrorHandler 代码
文件路径:/src/backend/gporca/libgpos/include/gpos/error/CErrorHandler.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2008 - 2010 Greenplum, Inc.
//
// @filename:
// CErrorHandler.h
//
// @doc:
// Error handler base class;
//---------------------------------------------------------------------------
#ifndef GPOS_CErrorHandler_H
#define GPOS_CErrorHandler_H
#include "gpos/assert.h"
#include "gpos/error/CException.h"
#include "gpos/types.h"
namespace gpos
{
// fwd declarations
class CMemoryPool;
//---------------------------------------------------------------------------
// @class:
// CErrorHandler
//
// @doc:
// Error handler to be installed inside a worker;
//
//---------------------------------------------------------------------------
class CErrorHandler
{
private:
public:
CErrorHandler(const CErrorHandler &) = delete;
// ctor
CErrorHandler() = default;
// dtor
virtual ~CErrorHandler() = default;
// process error
virtual void Process(CException exception) = 0;
}; // class CErrorHandler
} // namespace gpos
#endif // !GPOS_CErrorHandler_H
// EOF
相关信息
相关文章
greenplumn CAutoExceptionStack 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦