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
7namespace mx{
8 Exception::Exception(const std::string &text_) : text_value{text_} {}
9 std::string Exception::text() const { return text_value; }
10}
std::string text_value
Stored error message.
Definition exception.hpp:34
std::string text() const
Retrieve the error message.
Definition exception.cpp:9
Exception(const std::string &text_)
Construct an exception with the given message.
Definition exception.cpp:8
Exception type used throughout libmx.
Definition cfg.cpp:11