libmx2
2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
Loading...
Searching...
No Matches
exception.cpp
Go to the documentation of this file.
1
/**
2
* @file exception.cpp
3
* @brief Implementation of mx::Exception.
4
*/
5
#include"
exception.hpp
"
6
7
namespace
mx
{
8
Exception::Exception
(
const
std::string &text_) :
text_value
{text_} {}
9
std::string
Exception::text
()
const
{
return
text_value
; }
10
}
mx::Exception::text_value
std::string text_value
Stored error message.
Definition
exception.hpp:34
mx::Exception::text
std::string text() const
Retrieve the error message.
Definition
exception.cpp:9
mx::Exception::Exception
Exception(const std::string &text_)
Construct an exception with the given message.
Definition
exception.cpp:8
exception.hpp
Exception type used throughout libmx.
mx
Definition
cfg.cpp:11
libmx
libmx
exception.cpp
Generated by
1.16.1