diff options
author | Sven Göthel <[email protected]> | 2024-05-19 17:01:45 +0200 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-05-19 17:01:45 +0200 |
commit | dc12cbc34296c8f399fb90c74ad4d666bf705ad1 (patch) | |
tree | cbaa040f020993e954bc50a8fcad3dabf694dba1 /java_jni/jni/jau/jau_fs_FileUtil.cxx | |
parent | c4b0a992237c8355c85a7edb6a58b1f86221cb2d (diff) |
cleanup C++20: Cleanup and test Exception* OO tree, ensure only one std::exception OO tree instance is included (as they are not using virtual base classes)
Diffstat (limited to 'java_jni/jni/jau/jau_fs_FileUtil.cxx')
-rw-r--r-- | java_jni/jni/jau/jau_fs_FileUtil.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java_jni/jni/jau/jau_fs_FileUtil.cxx b/java_jni/jni/jau/jau_fs_FileUtil.cxx index b92036a..97cea09 100644 --- a/java_jni/jni/jau/jau_fs_FileUtil.cxx +++ b/java_jni/jni/jau/jau_fs_FileUtil.cxx @@ -60,7 +60,7 @@ jlong Java_org_jau_fs_FileStats_ctorImpl1(JNIEnv *env, jclass clazz, jstring jpa (void)clazz; try { if( nullptr == jpath ) { - throw jau::IllegalArgumentException("path null", E_FILE_LINE); + throw jau::IllegalArgumentError("path null", E_FILE_LINE); } std::string path = jau::jni::from_jstring_to_string(env, jpath); @@ -78,7 +78,7 @@ jlong Java_org_jau_fs_FileStats_ctorImpl2(JNIEnv *env, jclass clazz, jstring jdi (void)clazz; try { if( nullptr == jdirname || nullptr == jbasename ) { - throw jau::IllegalArgumentException("path null", E_FILE_LINE); + throw jau::IllegalArgumentError("path null", E_FILE_LINE); } std::string dirname = jau::jni::from_jstring_to_string(env, jdirname); std::string basename = jau::jni::from_jstring_to_string(env, jbasename); |