Lines Matching refs:msg
75 inline exception(const char *what_arg, const char *msg,
82 static inline void throw_error(enum isl_error error, const char *msg,
97 static void throw_invalid(const char *msg, const char *file, int line) {
98 throw_error(isl_error_invalid, msg, file, line);
104 * error message "msg" in line "line" of file "file".
110 exception::exception(const char *what_arg, const char *msg, const char *file,
113 if (!msg || !file)
117 ":" + std::to_string(line) + ": " + msg);
122 exception_abort(const char *msg, const char *file, int line) :
123 exception("execution aborted", msg, file, line) {}
128 exception_alloc(const char *msg, const char *file, int line) :
129 exception("memory allocation failure", msg, file, line) {}
134 exception_unknown(const char *msg, const char *file, int line) :
135 exception("unknown failure", msg, file, line) {}
140 exception_internal(const char *msg, const char *file, int line) :
141 exception("internal error", msg, file, line) {}
146 exception_invalid(const char *msg, const char *file, int line) :
147 exception("invalid argument", msg, file, line) {}
152 exception_quota(const char *msg, const char *file, int line) :
153 exception("quota exceeded", msg, file, line) {}
158 exception_unsupported(const char *msg, const char *file, int line) :
159 exception("unsupported operation", msg, file, line) {}
163 * error message "msg" in line "line" of file "file".
167 void exception::throw_error(enum isl_error error, const char *msg,
173 case isl_error_abort: throw exception_abort(msg, file, line);
174 case isl_error_alloc: throw exception_alloc(msg, file, line);
175 case isl_error_unknown: throw exception_unknown(msg, file, line);
176 case isl_error_internal: throw exception_internal(msg, file, line);
177 case isl_error_invalid: throw exception_invalid(msg, file, line);
178 case isl_error_quota: throw exception_quota(msg, file, line);
180 throw exception_unsupported(msg, file, line);
195 const char *msg, *file;
199 msg = isl_ctx_last_error_msg(ctx.get());
204 throw_error(error, msg, file, line);
222 static void throw_invalid(const char *msg, const char *file, int line) {
223 fprintf(stderr, "%s:%d: %s\n", file, line, msg);