1
0
mirror of https://github.com/juzzlin/Heimer.git synced 2025-05-09 12:53:20 +08:00
Heimer/src/editor/userexception.hpp
2018-02-23 00:07:29 +02:00

32 lines
988 B
C++

// This file is part of Dementia.
// Copyright (C) 2018 Jussi Lind <jussi.lind@iki.fi>
//
// Dementia is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Dementia is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Dementia. If not, see <http://www.gnu.org/licenses/>.
#ifndef USEREXCEPTION_HPP
#define USEREXCEPTION_HPP
#include <stdexcept>
#include <string>
class UserException : public std::runtime_error
{
public:
explicit UserException(std::string msg)
: runtime_error(msg)
{
}
};
#endif // USEREXCEPTION_HPP