MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / RaylibException

Class RaylibException

include/RaylibException.hpp:13–30  ·  view source on GitHub ↗

* Exception used for most raylib-related exceptions. */

Source from the content-addressed store, hash-verified

11 * Exception used for most raylib-related exceptions.
12 */
13class RaylibException : public std::runtime_error {
14public:
15 /**
16 * Construct a runtime exception with the given message.
17 *
18 * @param message The message to provide for the exception.
19 */
20 explicit RaylibException(const std::string& message) noexcept : std::runtime_error(message) {
21 // Nothing
22 }
23
24 /**
25 * Outputs the exception message to TraceLog().
26 *
27 * @param logLevel The output status to use when outputing.
28 */
29 void TraceLog(int logLevel = LOG_ERROR) { ::TraceLog(logLevel, std::runtime_error::what()); }
30};
31
32} // namespace raylib
33

Callers 15

ExportMethod · 0.85
ExportCodeMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
InitMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
ExportMethod · 0.85
ExportAsCodeMethod · 0.85
LoadMethod · 0.85
InitMethod · 0.85
LoadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected