Merge branch 'exception' of github.com:RobLoach/raylib-cpp into exception

This commit is contained in:
Rob Loach
2022-01-23 23:10:12 -05:00

View File

@@ -5,22 +5,15 @@
#include <string>
#include "raylib.h"
#include "./raylib.hpp"
namespace raylib {
class RaylibException : public std::runtime_error {
protected:
public:
RaylibException(std::string msg) throw() : std::runtime_error(msg)
{
}
/** Destructor.
* Virtual to allow for subclassing.
*/
//virtual ~Except() throw () {}
RaylibException(std::string msg) throw() : std::runtime_error(msg) {
// Nothing
}
/**
* Outputs the exception message to TraceLog().