The exception class for the PDF SDK.
More...
#include <pdfsdk/cxx/exception.h>
|
| 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.
|
|
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.
◆ 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
-
code | The error code associated with the exception. |
message | The 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
-
code | The error code associated with the exception. |
message | The error message associated with the exception. |
◆ 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: