Foxit PDF SDK
foxit::Exception类 参考

继承自 exception , 以及 Object .

Public 成员函数

 Exception (const char *file_name, int line_number, const char *function_name, ErrorCode error_code)
 带参数的构造函数。 更多...
 
 Exception (const Exception &exception)
 带另一个异常对象的构造函数。 更多...
 
 ~Exception () throw ()
 析构函数。
 
ErrorCode GetErrCode () const
 获取错误代码。 更多...
 
String GetMessage () const
 获取错误消息字符串。 更多...
 
String GetName () const
 获取错误代码的字符串。 更多...
 
Exceptionoperator= (const Exception &exception)
 赋值操作符。 更多...
 

详细描述

此类表示 Foxit PDF SDK 异常。

构造及析构函数说明

◆ Exception() [1/2]

foxit::Exception::Exception ( const char *  file_name,
int  line_number,
const char *  function_name,
ErrorCode  error_code 
)

带参数的构造函数。

参数
[in]file_name发生异常的文件名。
[in]line_number发生异常的行号。
[in]function_name发生异常的函数名。
[in]error_code错误代码值,表示当前异常的含义。 请参考从 foxit::e_ErrSuccess 开始的值, 此参数应为这些值之一。

◆ Exception() [2/2]

foxit::Exception::Exception ( const Exception exception)
inline

带另一个异常对象的构造函数。

参数
[in]exception另一个异常对象。

成员函数说明

◆ GetErrCode()

ErrorCode foxit::Exception::GetErrCode ( ) const
inline

获取错误代码。

返回
错误代码。

◆ GetMessage()

String foxit::Exception::GetMessage ( ) const
inline

获取错误消息字符串。

返回
错误消息字符串。

◆ GetName()

String foxit::Exception::GetName ( ) const
inline

获取错误代码的字符串。

返回
错误代码的字符串。

◆ operator=()

Exception& foxit::Exception::operator= ( const Exception exception)
inline

赋值操作符。

参数
[in]exception另一个异常对象,其值将被赋给当前对象。
返回
对当前对象本身的引用。