~thestr4ng3r/chiaki

ref: 796a12845684afe5c4b194d4111bcdcf5b04aca2 chiaki/switch/include/exception.h -rw-r--r-- 385 bytes
796a1284Florian Märkl Fix fec.c extension 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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