MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxnetwork::Exception Class Reference

Lightweight exception wrapper for MXNetwork failures. More...

#include <MXNetwork/include/mxnetwork/exception.hpp>

Public Member Functions

 Exception (const std::string &s)
 Construct an exception with a message.
std::string text () const
 Return the stored error text.

Protected Attributes

std::string txt

Detailed Description

Lightweight exception wrapper for MXNetwork failures.

Definition at line 11 of file exception.hpp.

Constructor & Destructor Documentation

◆ Exception()

mxnetwork::Exception::Exception ( const std::string & s)
inline

Construct an exception with a message.

Parameters
sError text.

Definition at line 17 of file exception.hpp.

17: txt{s} {}

Member Function Documentation

◆ text()

std::string mxnetwork::Exception::text ( ) const

Return the stored error text.

Returns
Error text.

Definition at line 5 of file exception.cpp.

5 {
6 return txt;
7 }

Member Data Documentation

◆ txt

std::string mxnetwork::Exception::txt
protected

Definition at line 25 of file exception.hpp.


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