libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
Art::Paperback::Fault Class Reference

Base class for errors. More...

#include <art/paperback/except.hxx>

Inheritance diagram for Art::Paperback::Fault:

Public Member Functions

 Fault (std::source_location origin, string what)
 Constructor.
 
std::source_location const & origin () const
 Access the C++ source origin of the exception.
 

Private Attributes

std::source_location _origin
 

Detailed Description

Base class for errors.

Constructor & Destructor Documentation

◆ Fault()

Art::Paperback::Fault::Fault ( std::source_location origin,
string what )
inline

Constructor.

Parameters
originThe C++ source origin of the exception.
whatA description of the error.

Member Function Documentation

◆ origin()

std::source_location const & Art::Paperback::Fault::origin ( ) const

Access the C++ source origin of the exception.