📄 csqlerror.cpp
字号:
#include "stdafx.h"#include "CSqlError.h"CSqlError :: CSqlError(const string&driverText,const string&databaseText,int type,int number):driverError(driverText),databaseError(databaseText),errorType(type),errorNumber(number){}CSqlError :: CSqlError(const CSqlError&other):driverError(other.driverError),databaseError(other.databaseError),errorType(other.errorType),errorNumber(other.errorNumber){}CSqlError&CSqlError :: operator=(const CSqlError&other){ driverError=other.driverError ; databaseError=other.databaseError ; errorType=other.errorType ; errorNumber=other.errorNumber ; return*this ;}CSqlError ::~CSqlError(){}string CSqlError :: driverText()const { return driverError ;}void CSqlError :: setDriverText(const string&driverText){ driverError=driverText ;}string CSqlError :: databaseText()const { return databaseError ;}void CSqlError :: setDatabaseText(const string&databaseText){ databaseError=databaseText ;}/*! Returns the error type, or -1 if the type cannot be determined. \sa CSqlError::Type.*/int CSqlError :: type()const { return errorType ;}void CSqlError :: setType(int type){ errorType=type ;}/*! Returns the database-specific error number, or -1 if it cannot be determined.*/int CSqlError :: number()const { return errorNumber ;}/*! Sets the database-specific error number to the value of \a number.*/void CSqlError :: setNumber(int number){ errorNumber=number ;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -