MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / ScriptException

Class ScriptException

extensions/script/ScriptException.h:37–55  ·  view source on GitHub ↗

* Defines an exception that may occur within the confines of a script. */

Source from the content-addressed store, hash-verified

35 * Defines an exception that may occur within the confines of a script.
36 */
37class ScriptException : public std::exception {
38 public:
39 // Constructor
40 /*!
41 * Create a new exception
42 */
43 ScriptException(std::string errorMsg)
44 : error_(std::move(errorMsg)) {
45 }
46
47 virtual ~ScriptException() noexcept = default;
48
49 virtual const char * what() const noexcept {
50 return error_.c_str();
51 }
52
53 private:
54 std::string error_;
55};
56} /* namespace script */
57} /* namespace minifi */
58} /* namespace nifi */

Callers 3

evalMethod · 0.85
evalFileMethod · 0.85
callMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected