| 114 | int DimensionError::getArgIndex() const noexcept { return argIndex; } |
| 115 | |
| 116 | af_err set_global_error_string(const string &msg, af_err err) { |
| 117 | string perr = getEnvVar("AF_PRINT_ERRORS"); |
| 118 | if (!perr.empty()) { |
| 119 | if (perr != "0") { fprintf(stderr, "%s\n", msg.c_str()); } |
| 120 | } |
| 121 | get_global_error_string() = msg; |
| 122 | return err; |
| 123 | } |
| 124 | |
| 125 | af_err processException() { |
| 126 | stringstream ss; |
no test coverage detected