File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ JNIEXPORT retType JNICALL BUILD_METHOD(TYPENAME ,name) ( \
4545
4646#define CATCH_EXCEPTION (RET ) \
4747catch (const zim::ZimFileFormatError& e) { \
48- throwException (env, " org/kiwix/libzim/ZimFileFormatException" , " Zim file format error. " ); \
48+ throwException (env, " org/kiwix/libzim/ZimFileFormatException" , e. what () ); \
4949 return RET; \
5050} catch (const zim::InvalidType& e) { \
51- throwException (env, " java/lang/Exception" , " Invalid type. " ); \
51+ throwException (env, " java/lang/Exception" , e. what () ); \
5252 return RET; \
5353} catch (const zim::EntryNotFound& e) { \
54- throwException (env, " java/lang/Exception" , " Entry Not Found. " ); \
54+ throwException (env, " java/lang/Exception" , e. what () ); \
5555 return RET; \
5656} catch (const std::ios_base::failure& e) { \
5757 throwException (env, " java/io/IOException" , e.what ()); \
You can’t perform that action at this time.
0 commit comments