Go to the documentation of this file.
28 explicit Error(
const char *msg);
29 explicit Error(
const std::string &msg);
38 virtual const char *what()
const noexcept;
79 virtual void warning(
const char *msg) = 0;
80 virtual void error(
const char *msg) = 0;
155 #define _halide_internal_assertion(condition, flags) \
157 (condition) ? (void)0 : ::Halide::Internal::Voidifier() & ::Halide::Internal::ErrorReport(__FILE__, __LINE__, #condition, flags).ref()
159 #define internal_error Halide::Internal::ErrorReport(__FILE__, __LINE__, nullptr, 0)
160 #define user_error Halide::Internal::ErrorReport(__FILE__, __LINE__, nullptr, Halide::Internal::ErrorReport::User)
161 #define user_warning Halide::Internal::ErrorReport(__FILE__, __LINE__, nullptr, Halide::Internal::ErrorReport::User | Halide::Internal::ErrorReport::Warning)
162 #define halide_runtime_error Halide::Internal::ErrorReport(__FILE__, __LINE__, nullptr, Halide::Internal::ErrorReport::User | Halide::Internal::ErrorReport::Runtime)
164 #define internal_assert(c) _halide_internal_assertion(c, 0)
165 #define user_assert(c) _halide_internal_assertion(c, Halide::Internal::ErrorReport::User)
171 #define _halide_user_assert(c) _halide_internal_assertion(c, Halide::Internal::ErrorReport::User)
An error that occurs while compiling a Halide pipeline that Halide attributes to a user error.
void set_custom_compile_time_error_reporter(CompileTimeErrorReporter *error_reporter)
The default error reporter logs to stderr, then throws an exception (if HALIDE_WITH_EXCEPTIONS) or ca...
~ErrorReport() noexcept(false)
When you're done using << on the object, and let it fall out of scope, this errors out,...
A base class for Halide errors.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
@ Internal
Not visible externally, similar to 'static' linkage in C.
ErrorReport(const char *f, int l, const char *cs, int flags)
An error that occurs while compiling a Halide pipeline that Halide attributes to an internal compiler...
#define HALIDE_ALWAYS_INLINE
bool exceptions_enabled()
Query whether Halide was compiled with exceptions.
HALIDE_ALWAYS_INLINE ErrorReport & ref()
HALIDE_ALWAYS_INLINE void operator&(ErrorReport &)
virtual ~CompileTimeErrorReporter()=default
#define HALIDE_EXPORT_SYMBOL
An error that occurs while running a JIT-compiled Halide pipeline.
CompileTimeErrorReporter is used at compile time (not runtime) when an error or warning is generated ...
HALIDE_EXPORT_SYMBOL void unhandled_exception_handler()
virtual void error(const char *msg)=0
virtual void warning(const char *msg)=0
ErrorReport & operator<<(const T &x)