Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
Halide::Error Struct Reference

A base class for Halide errors. More...

#include <Error.h>

Inheritance diagram for Halide::Error:
Halide::CompileError Halide::InternalError Halide::RuntimeError

Public Member Functions

 Error ()=delete
 
 Error (const char *msg)
 
 Error (const std::string &msg)
 
 Error (const Error &)
 
Erroroperator= (const Error &)
 
 Error (Error &&) noexcept
 
Erroroperator= (Error &&) noexcept
 
virtual ~Error ()
 
virtual const char * what () const noexcept
 

Detailed Description

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.

Definition at line 23 of file Error.h.

Constructor & Destructor Documentation

◆ Error() [1/5]

Halide::Error::Error ( )
delete

◆ Error() [2/5]

Halide::Error::Error ( const char * msg)
explicit

◆ Error() [3/5]

Halide::Error::Error ( const std::string & msg)
explicit

◆ Error() [4/5]

Halide::Error::Error ( const Error & )

◆ Error() [5/5]

Halide::Error::Error ( Error && )
noexcept

◆ ~Error()

virtual Halide::Error::~Error ( )
virtual

Member Function Documentation

◆ operator=() [1/2]

Error & Halide::Error::operator= ( const Error & )

◆ operator=() [2/2]

Error & Halide::Error::operator= ( Error && )
noexcept

◆ what()

virtual const char * Halide::Error::what ( ) const
virtualnoexcept

The documentation for this struct was generated from the following file: