exception.h
来自「oci是操作oracle数据库的接口,已对相应的接口用C++进行的封装成类,以方」· C头文件 代码 · 共 72 行
H
72 行
/************************************************
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 + =
减小字号Ctrl + -
显示快捷键?