|
Uni20
Asynchronous tensor and runtime library.
|
Base class for exceptions raised through Uni20's diagnostic boundary. More...
#include <diagnostic_error.hpp>
Public Member Functions | |
| diagnostic_error (std::string message) | |
| Construct an exception with its concise plain-text message. | |
| void | set_source_location (std::source_location where) noexcept |
| Attach the source location at which the exception is raised. | |
| std::optional< std::source_location > const & | source_location () const noexcept |
| Return the attached source location, if any. | |
Base class for exceptions raised through Uni20's diagnostic boundary.
|
inlineexplicit |
Construct an exception with its concise plain-text message.
|
inlinenoexcept |
Attach the source location at which the exception is raised.
|
inlinenoexcept |
Return the attached source location, if any.