Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
uni20::diagnostic_error Class Reference

Base class for exceptions raised through Uni20's diagnostic boundary. More...

#include <diagnostic_error.hpp>

Inheritance diagram for uni20::diagnostic_error:
[legend]
Collaboration diagram for uni20::diagnostic_error:
[legend]

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.
 

Detailed Description

Base class for exceptions raised through Uni20's diagnostic boundary.

Constructor & Destructor Documentation

◆ diagnostic_error()

uni20::diagnostic_error::diagnostic_error ( std::string  message)
inlineexplicit

Construct an exception with its concise plain-text message.

Member Function Documentation

◆ set_source_location()

void uni20::diagnostic_error::set_source_location ( std::source_location  where)
inlinenoexcept

Attach the source location at which the exception is raised.

◆ source_location()

std::optional< std::source_location > const & uni20::diagnostic_error::source_location ( ) const
inlinenoexcept

Return the attached source location, if any.


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