modules/fxpackager/src/main/native/library/common/Java.h
Print this page
*** 44,76 ****
class JavaStaticMethod;
class JavaMethod;
class JavaStringArray;
! class JavaException : public std::exception {
// Prohibit Heap-Based Classes.
private:
static void *operator new(size_t size);
private:
#ifdef DEBUG
! static std::string CreateExceptionMessage(JNIEnv* Env, jthrowable Exception,
jmethodID GetCauseMethod, jmethodID GetStackTraceMethod, jmethodID ThrowableToStringMethod,
jmethodID FrameToStringMethod);
#endif //DEBUG
- std::string FMessage;
jthrowable FException;
JNIEnv *FEnv;
public:
explicit JavaException();
! explicit JavaException(const char* const message);
! explicit JavaException(JNIEnv *Env, const char* const message);
virtual ~JavaException() throw() {}
- virtual const char* what();
void Rethrow();
};
class JavaStaticMethod {
--- 44,73 ----
class JavaStaticMethod;
class JavaMethod;
class JavaStringArray;
! class JavaException : public Exception {
// Prohibit Heap-Based Classes.
private:
static void *operator new(size_t size);
private:
#ifdef DEBUG
! static TString CreateExceptionMessage(JNIEnv* Env, jthrowable Exception,
jmethodID GetCauseMethod, jmethodID GetStackTraceMethod, jmethodID ThrowableToStringMethod,
jmethodID FrameToStringMethod);
#endif //DEBUG
jthrowable FException;
JNIEnv *FEnv;
public:
explicit JavaException();
! explicit JavaException(JNIEnv *Env, const TString message);
virtual ~JavaException() throw() {}
void Rethrow();
};
class JavaStaticMethod {