mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-03-12 05:25:23 -07:00
21 lines
385 B
C++
21 lines
385 B
C++
// SPDX-License-Identifier: LicenseRef-AGPL-3.0-only-OpenSSL
|
|
|
|
#ifndef CHIAKI_EXCEPTION_H
|
|
#define CHIAKI_EXCEPTION_H
|
|
|
|
#include <exception>
|
|
|
|
#include <string>
|
|
|
|
class Exception : public std::exception
|
|
{
|
|
private:
|
|
const char *msg;
|
|
|
|
public:
|
|
explicit Exception(const char *msg) : msg(msg) {}
|
|
const char *what() const noexcept override { return msg; }
|
|
};
|
|
|
|
#endif // CHIAKI_EXCEPTION_H
|