Lines Matching full:msg
86 inline exception(const char *what_arg, const char *msg,
93 static inline void throw_error(enum isl_error error, const char *msg,
108 static void throw_invalid(const char *msg, const char *file, int line) {
109 throw_error(isl_error_invalid, msg, file, line);
115 * error message "msg" in line "line" of file "file".
121 exception::exception(const char *what_arg, const char *msg, const char *file,
124 if (!msg || !file)
128 ":" + std::to_string(line) + ": " + msg);
133 exception_abort(const char *msg, const char *file, int line) :
134 exception("execution aborted", msg, file, line) {}
139 exception_alloc(const char *msg, const char *file, int line) :
140 exception("memory allocation failure", msg, file, line) {}
145 exception_unknown(const char *msg, const char *file, int line) :
146 exception("unknown failure", msg, file, line) {}
151 exception_internal(const char *msg, const char *file, int line) :
152 exception("internal error", msg, file, line) {}
157 exception_invalid(const char *msg, const char *file, int line) :
158 exception("invalid argument", msg, file, line) {}
163 exception_quota(const char *msg, const char *file, int line) :
164 exception("quota exceeded", msg, file, line) {}
169 exception_unsupported(const char *msg, const char *file, int line) :
170 exception("unsupported operation", msg, file, line) {}
174 * error message "msg" in line "line" of file "file".
178 void exception::throw_error(enum isl_error error, const char *msg,
184 case isl_error_abort: throw exception_abort(msg, file, line);
185 case isl_error_alloc: throw exception_alloc(msg, file, line);
186 case isl_error_unknown: throw exception_unknown(msg, file, line);
187 case isl_error_internal: throw exception_internal(msg, file, line);
188 case isl_error_invalid: throw exception_invalid(msg, file, line);
189 case isl_error_quota: throw exception_quota(msg, file, line);
191 throw exception_unsupported(msg, file, line);
206 const char *msg, *file;
210 msg = isl_ctx_last_error_msg(ctx.get());
215 throw_error(error, msg, file, line);
233 static void throw_invalid(const char *msg, const char *file, int line) {
234 fprintf(stderr, "%s:%d: %s\n", file, line, msg);