#include <Exception.h>
Public Member Functions | |
Exception () | |
Exception (TRN_Exception e) | |
Exception (const char *cond_expr, TRN_Int32 line_number, const char *file_name, const char *function, const char *message, TRN_UInt32 error_code=0) | |
~Exception () throw () | |
const char * | GetCondExpr () |
const char * | GetFileName () |
TRN_Int32 | GetLineNumber () |
const char * | GetFunction () |
const char * | GetMessage () |
std::string | ToString () |
std::ostream & | Print (std::ostream &stream) |
TRN_UInt32 | GetErrorCode () |
virtual const char * | what () const throw () |
Public Attributes | |
TRN_Exception | e |
Exception is derived from standard C++ exception class and it is a superclass for all PDFNet library exceptions.
Exception and its subclasses have two constructors: one that takes no arguments and one that takes a string argument that can be used to report an error message.
Definition at line 24 of file Exception.h.
|
inline |
Constructs an Exception with no specified detail message.
Definition at line 31 of file Exception.h.
pdftron::Common::Exception::Exception | ( | TRN_Exception | e | ) |
pdftron::Common::Exception::Exception | ( | const char * | cond_expr, |
TRN_Int32 | line_number, | ||
const char * | file_name, | ||
const char * | function, | ||
const char * | message, | ||
TRN_UInt32 | error_code = 0 |
||
) |
Constructs an Exception with detailed error info.
cond_expr | - conditional expression that failed. |
line_number | - line number where the exception occurred. |
file_name | - file name where the exception occurred. |
function | - function in which the exception occurred. |
message | - detailed error message. |
|
inline |
Definition at line 51 of file Exception.h.
const char* pdftron::Common::Exception::GetCondExpr | ( | ) |
TRN_UInt32 pdftron::Common::Exception::GetErrorCode | ( | ) |
const char* pdftron::Common::Exception::GetFileName | ( | ) |
const char* pdftron::Common::Exception::GetFunction | ( | ) |
TRN_Int32 pdftron::Common::Exception::GetLineNumber | ( | ) |
const char* pdftron::Common::Exception::GetMessage | ( | ) |
std::ostream& pdftron::Common::Exception::Print | ( | std::ostream & | stream | ) |
Print out the Exception to the output stream.
std::string pdftron::Common::Exception::ToString | ( | ) |
|
virtual |
Returns the full error message string.
TRN_Exception pdftron::Common::Exception::e |
Definition at line 99 of file Exception.h.