📄 exception.h
字号:
/************************************************
Copyright by 97Dept. of Wholewise, 2001-09-01
File Name: pub_func.cpp
Created Date: 2001-10-15
Author: Yeyh
Version: 0.0.0.02
Create Version: 0.0.0.01
Last Version Date: 2001-10-24
Create Version Date: 2001-10-24
2) Modified By Name of Programmer
Date YYYY-MM-DD
Function Added:
Function Removed:
Function Changed:
Other changes:
......
************************************************/
#ifndef IBSS_EXCEPTION_
#define IBSS_EXCEPTION_
#ifndef TUXEDO
#define TUXEDO
#endif
#include <wwfml.h>
#include <mcci.h>
typedef struct _mcci_tuxedo_fml_ {
int ierrno; /* 错误码 */
char *errstr; /* 错误信息 */
} MCCI_TUXEDO_FML_ERROR;
/* 定义错误列表 */
typedef struct _mcci_tuxedo_ {
int ierrno; /* 错误码 */
char *errstr; /* 错误信息 */
} MCCI_TUXEDO_ERROR;
class TException
{
public:
TException();
TException(const char* err);
virtual ~TException();
virtual char* GetErrMsg() const;
private:
char errMsg[1024+1];
};
class TTUXException : public TException
{
public:
TTUXException(const char* cat,MCCI_TUXEDO_FML_ERROR errInfo,WWFLDID fieldid);
TTUXException(const char* cat,MCCI_TUXEDO_ERROR errInfo);
TTUXException(const char* cat,int errNo,const char* err,WWFLDID fieldid);
~TTUXException();
char *GetErrMsg() const;
private:
char tuxCat[15+1];
int tuxErrNo;
WWFLDID tuxFldID;
char tuxFldName[32+1];
char tuxErrMsg[524+1];
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -