PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
PDF::Exception Class Reference

The exception class for the PDF SDK. More...

#include <pdfsdk/cxx/exception.h>

Inheritance diagram for PDF::Exception:

Public Member Functions

 Exception (PDErrCode code, const std::string &message)
 Constructs a new exception with the specified error code and message.
 
 Exception (PDErrCode code, const char *message)
 Constructs a new exception with the specified error code and message.
 
PDErrCode GetErrorCode () const noexcept
 Gets the error code associated with the exception.
 
const char * GetErrorMessage () const noexcept
 Gets the error message associated with the exception.
 

Detailed Description

The exception class for the PDF SDK.

See also
PDErrCode for a list of error codes.
PDF_THROW for a convenient way to throw an exception.

Constructor & Destructor Documentation

◆ Exception() [1/2]

PDF::Exception::Exception ( PDErrCode code,
const std::string & message )
inline

Constructs a new exception with the specified error code and message.

Parameters
codeThe error code associated with the exception.
messageThe error message associated with the exception.

◆ Exception() [2/2]

PDF::Exception::Exception ( PDErrCode code,
const char * message )
inline

Constructs a new exception with the specified error code and message.

Parameters
codeThe error code associated with the exception.
messageThe error message associated with the exception.

Member Function Documentation

◆ GetErrorCode()

PDErrCode PDF::Exception::GetErrorCode ( ) const
inlinenoexcept

Gets the error code associated with the exception.

Returns
The error code.

◆ GetErrorMessage()

const char * PDF::Exception::GetErrorMessage ( ) const
inlinenoexcept

Gets the error message associated with the exception.

Returns
The error message.

The documentation for this class was generated from the following file: