| 2123 | } |
| 2124 | |
| 2125 | void ScriptnodeExceptionHandler::addError(NodeBase* n, Error e, const String& errorMessage) |
| 2126 | { |
| 2127 | customErrorMessage = errorMessage; |
| 2128 | |
| 2129 | for (auto& i : items) |
| 2130 | { |
| 2131 | if (i.node == n) |
| 2132 | { |
| 2133 | i.error = e; |
| 2134 | return; |
| 2135 | } |
| 2136 | } |
| 2137 | |
| 2138 | items.add({ n, e }); |
| 2139 | |
| 2140 | errorBroadcaster.sendMessage(sendNotificationAsync, n, e); |
| 2141 | } |
| 2142 | |
| 2143 | void ScriptnodeExceptionHandler::removeError(NodeBase* n, Error::ErrorCode errorToRemove) |
| 2144 | { |
no test coverage detected