5#ifndef PDFTRON_H_CPPCommonException
6#define PDFTRON_H_CPPCommonException
12#include <C/Common/TRN_Exception.h>
45 TRN_Int32 line_number,
46 const char* file_name,
49 TRN_UInt32 error_code = 0);
86 std::ostream&
Print(std::ostream& stream);
97 virtual const char*
what()
const throw();
112inline std::ostream& operator<<(std::ostream& stream,
Exception&
e)
114 return e.Print(stream);
117#include <Impl/Exception.inl>
const char * GetFunction()
Exception(const char *cond_expr, TRN_Int32 line_number, const char *file_name, const char *function, const char *message, TRN_UInt32 error_code=0)
const char * GetCondExpr()
virtual const char * what() const
std::ostream & Print(std::ostream &stream)
Exception(TRN_Exception e)
TRN_UInt32 GetErrorCode()
TRN_Int32 GetLineNumber()
const char * GetMessage()
const char * GetFileName()