PDFTool  6.0
Public Member Functions | List of all members
PdfTk::PtlException Class Reference

PDF Tool APIの例外クラスです。
例外が発生した場合に使用します。 More...

#include <PtlException.h>

Public Member Functions

int getHandle () const
 
 PtlException (int errorCode)
 コンストラクタ More...
 
 PtlException (int errorCode, PtlParamString &errorMsg)
 コンストラクタ More...
 
 PtlException (const PtlException &obj)
 コピーコンストラクタ More...
 
 ‾PtlException ()
 デストラクタ
 
PtlExceptionoperator= (const PtlException &obj)
 コピーオペレータ More...
 
int getErrorCode () const
 エラーコードを取得。 More...
 
const PtlParamStringgetErrorMessage () const
 エラーメッセージを取得。 More...
 
const PtlParamStringgetErrorMessageJP () const
 エラーメッセージ(日本語)を取得。 More...
 

Detailed Description

PDF Tool APIの例外クラスです。
例外が発生した場合に使用します。

Constructor & Destructor Documentation

◆ PtlException() [1/3]

PdfTk::PtlException::PtlException ( int  errorCode)

コンストラクタ

PtlErrorCode::XXXX に定義されているエラーコードを指定するとそれに応じたエラーメッセージがセットされる。

Parameters
errorCodeエラーコード

◆ PtlException() [2/3]

PdfTk::PtlException::PtlException ( int  errorCode,
PtlParamString errorMsg 
)

コンストラクタ

Parameters
errorCodeエラーコード
errorMsgエラーメッセージ

◆ PtlException() [3/3]

PdfTk::PtlException::PtlException ( const PtlException obj)

コピーコンストラクタ

Parameters
objコピー元オブジェクト。

Member Function Documentation

◆ getErrorCode()

int PdfTk::PtlException::getErrorCode ( ) const

エラーコードを取得。

Returns
エラーコード(PtlErrorCode)

◆ getErrorMessage()

const PtlParamString& PdfTk::PtlException::getErrorMessage ( ) const

エラーメッセージを取得。

Returns
エラーメッセージ

◆ getErrorMessageJP()

const PtlParamString& PdfTk::PtlException::getErrorMessageJP ( ) const

エラーメッセージ(日本語)を取得。

Returns
エラーメッセージ(日本語)

◆ operator=()

PtlException& PdfTk::PtlException::operator= ( const PtlException obj)

コピーオペレータ

Parameters
objコピー元オブジェクト。