用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
2.4 KiB

5 months ago
<EFBFBD><EFBFBD>
#pragma once
#ifndef __ERPEXCEPTION_H
#define __ERPEXCEPTION_H
/********************************************************************
Class Name: ERPException
Created Date:20090805
Version 2.0
Author: wuding
Definition file: ErpExcept.cpp
Last Version Date: 20091105
Version Date:
vserion 2.0 <EFBFBD>ReQ_8^<EFBFBD>~+RYt <EFBFBD><EFBFBD>e<EFBFBD>OMRT<EFBFBD>S<EFBFBD>[_8^ۏL<EFBFBD>R{|
********************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <map>
#include <stdarg.h>
//
const int SYSTEM_ERROR = 1;
#define MAX_EXCEPTION_LEN 4*1024
enum EGrade { EERROR=0,EWARNING,EHINT};
class ERPException
{
public:
explicit ERPException(EGrade nGrade,const char *pFormat,...);
explicit ERPException(EGrade nGrade, int nCode, const char *pFormat,...);
~ERPException();
public:
EGrade GetErrorGrade() ;
int GetErrorCode();
const char *GetErrorMsg();
const std::wstring GetErrorMsgW();
const std::string GetErrorMsgA();
private:
EGrade mGrade; //<EFBFBD><EFBFBD><EFBFBD>I{<EFBFBD>~
int nErrCode; //<EFBFBD><EFBFBD><EFBFBD><EFBFBD>S
char m_str[MAX_EXCEPTION_LEN]; //<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>f
};
#endif