raylib-cpp
C++ object-oriented wrapper library for raylib.
include
RaylibException.hpp
1
#ifndef RAYLIB_CPP_INCLUDE_RAYLIBEXCEPTION_HPP_
2
#define RAYLIB_CPP_INCLUDE_RAYLIBEXCEPTION_HPP_
3
4
#include <stdexcept>
5
#include <string>
6
7
#include "./raylib.hpp"
8
9
namespace
raylib
{
13
class
RaylibException
:
public
std::runtime_error {
14
public
:
20
RaylibException
(std::string message)
throw
() : std::runtime_error(message) {
21
// Nothing
22
}
23
29
void
TraceLog
(
int
logLevel = LOG_ERROR) {
30
::TraceLog
(logLevel, std::runtime_error::what());
31
}
32
};
33
34
}
// namespace raylib
35
36
#endif // RAYLIB_CPP_INCLUDE_RAYLIBEXCEPTION_HPP_
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition:
AudioDevice.hpp:8
raylib::RaylibException::RaylibException
RaylibException(std::string message)
Construct a runtime exception with the given message.
Definition:
RaylibException.hpp:20
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition:
RaylibException.hpp:13
raylib::RaylibException::TraceLog
void TraceLog(int logLevel=LOG_ERROR)
Outputs the exception message to TraceLog().
Definition:
RaylibException.hpp:29
Generated by
1.8.17