Error#

struct Error#

A base class for Halide errors.

Note that this deliberately does not descend from std::runtime_error, or even std::exception; unfortunately, std::runtime_error is not marked as DLLEXPORT on Windows, but Error needs to be marked as such, and mismatching DLLEXPORT annotations in a class inheritance hierarchy in this way can lead to ODR violations. Instead, we just attempt to replicate the API of runtime_error here.

Subclassed by Halide::CompileError, Halide::InternalError, Halide::RuntimeError