mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-20 16:49:52 +00:00
26 lines
385 B
C++
26 lines
385 B
C++
//
|
|
// Created by anonymus-raccoon on 3/26/20.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <bits/exception.h>
|
|
|
|
namespace ComSquare
|
|
{
|
|
class DebuggableError : public std::exception
|
|
{
|
|
protected:
|
|
std::string _msg;
|
|
public:
|
|
explicit DebuggableError(std::string msg)
|
|
: _msg(std::move(msg))
|
|
{}
|
|
|
|
[[nodiscard]] const char *what() const noexcept override
|
|
{
|
|
return this->_msg.c_str();
|
|
}
|
|
};
|
|
}
|