![]() |
#include <Exception.h>
Public Member Functions | |
Exception () | |
Constructs an Exception with no specified detail message. | |
Exception (TRN_Exception e) | |
Exception (const char *cond_expr, TRN_Int32 line_number, const char *file_name, const char *function, const char *message) | |
Constructs an Exception with detailed error info. | |
~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) |
Print out the Exception to the output stream. | |
Protected Attributes | |
TRN_Exception | e |
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.
pdftron::Common::Exception::Exception | ( | ) | [inline] |
Constructs an Exception with no specified detail message.
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 | |||
) |
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. |
pdftron::Common::Exception::~Exception | ( | ) | throw () [inline] |
const char* pdftron::Common::Exception::GetCondExpr | ( | ) |
const char* pdftron::Common::Exception::GetFileName | ( | ) |
TRN_Int32 pdftron::Common::Exception::GetLineNumber | ( | ) |
const char* pdftron::Common::Exception::GetFunction | ( | ) |
const char* pdftron::Common::Exception::GetMessage | ( | ) |
std::string pdftron::Common::Exception::ToString | ( | ) |
std::ostream& pdftron::Common::Exception::Print | ( | std::ostream & | stream | ) |
TRN_Exception pdftron::Common::Exception::e [protected] |