[Coverity] Fix Coverity issue at KNN Application
authorDonghak PARK <donghak.park@samsung.com>
Thu, 6 Feb 2025 01:19:14 +0000 (10:19 +0900)
committerjijoong.moon <jijoong.moon@samsung.com>
Tue, 11 Feb 2025 05:45:07 +0000 (14:45 +0900)
commit59d234eb0aee8858491372ef94a5b51b3c18eefc
tree9b6097e6de5d35628b8a9d8dbc7c6b022ad92a7b
parent4080ed5cc29140015d833fa3692ff7cfd579cf16
[Coverity] Fix Coverity issue at KNN Application

Uncaught exception (UNCAUGHT_EXCEPT)
- root_function: In function main(int, char **) an exception of type std::bad_cast is thrown and never caught
- to fix issue, add try catch statement at writefile

**Self evaluation:**
1. Build test:  [X]Passed [ ]Failed [ ]Skipped
2. Run test:  [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghak PARK <donghak.park@samsung.com>
Applications/KNN/jni/main.cpp