#include <errors/make.hpp>
Public Member Functions | |
with (Args... args, source_location location=source_location::current()) | |
Create an error. | |
![]() | |
template<typename E > | |
bool | is () const |
Check if the error is caused by some kind of errors::error recursively. | |
template<typename E > | |
const E * | as () const |
Looking up error in causes. | |
template<typename E > | |
E * | as () |
Looking up error in causes. | |
|
inline |
Create an error.
This class and this constructor is used to quickly create an error. It captures the source location from where it is called, and passes it as the last argument with anything you pass to the error constructor.