| 2094 | } |
| 2095 | |
| 2096 | String ScriptnodeExceptionHandler::Item::toString(const String& customErrorMessage) const |
| 2097 | { |
| 2098 | if (node == nullptr || error.error == Error::OK) |
| 2099 | return {}; |
| 2100 | else |
| 2101 | { |
| 2102 | String s; |
| 2103 | s << node->getCurrentId() << " - "; |
| 2104 | |
| 2105 | if (customErrorMessage.isNotEmpty()) |
| 2106 | s << customErrorMessage; |
| 2107 | else |
| 2108 | s << getErrorMessage(error); |
| 2109 | return s; |
| 2110 | } |
| 2111 | } |
| 2112 | |
| 2113 | bool ScriptnodeExceptionHandler::isOk() const noexcept |
| 2114 | { |
no test coverage detected