Newer
Older
c-interpreter / include / kcpp_exception.hpp
Nomura Kei on 9 Aug 2023 578 bytes UPDATE
////////////////////////////////////////////////////////////////////////////////
//
// Exception
//
#ifndef KCPP_EXCEPTION_HPP
#define KCPP_EXCEPTION_HPP

#include <kcpp_throwable.hpp>

namespace kcpp
{
	/**
	 * kcpp で扱う例外クラス。
     * 回復可能なエラーの場合、本クラスを継承した例外を投げます。
	 */
	class Exception : public Throwable
	{
		public:
			Exception() noexcept;
			Exception(const Exception& t) noexcept;
			Exception(const std::string& msg) noexcept;
			virtual ~Exception() noexcept;
	};
}
#endif	// KCPP_EXCEPTION_HPP