Reports an error status and throws an exception object in case of failure * * @note This implementation is used when exceptions are enabled during compilation * * @param[in] status Status to report * @param[in] msg Explanatory error messaged * * @return Status code */
| 268 | * @return Status code |
| 269 | */ |
| 270 | static inline void report_status(StatusCode status, const std::string &msg) |
| 271 | { |
| 272 | if (status != StatusCode::Success) |
| 273 | { |
| 274 | throw Status(status, msg); |
| 275 | } |
| 276 | } |
| 277 | #else /* defined(ARM_COMPUTE_EXCEPTIONS_ENABLED) */ |
| 278 | /** Reports a status code |
| 279 | * |
no test coverage detected