mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-12-02 17:34:03 +00:00
Merge branch 'exception' of github.com:RobLoach/raylib-cpp into exception
This commit is contained in:
@@ -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().
|
||||
|
||||
Reference in New Issue
Block a user