forked from justadudewhohacks/opencv4nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request justadudewhohacks#248 from justadudewhohacks/openc…
…v-exception-handling Opencv exception handling
- Loading branch information
Showing
44 changed files
with
803 additions
and
920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "Workers.h" | ||
|
||
#ifndef __FF_CATCHCVEXCEPTIONWORKER_H__ | ||
#define __FF_CATCHCVEXCEPTIONWORKER_H__ | ||
|
||
struct CatchCvExceptionWorker : public SimpleWorker { | ||
public: | ||
std::string execute() { | ||
try { | ||
return executeCatchCvExceptionWorker(); | ||
} catch (std::exception e) { | ||
return std::string(e.what()); | ||
} | ||
} | ||
|
||
virtual std::string executeCatchCvExceptionWorker() = 0; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.