Raylib C++  1.0.0
Encapsulates the raylib library
Public Member Functions | List of all members
raylib::ex::RaylibException Class Reference

All exceptions of the raylib-cpp library will inherit from this class. More...

#include <RaylibException.hpp>

Inheritance diagram for raylib::ex::RaylibException:
Inheritance graph
Collaboration diagram for raylib::ex::RaylibException:
Collaboration graph

Public Member Functions

 RaylibException (const std::string &msg, bool prefix=true)
 RaylibException constructor. More...
 
const char * what () const noexcept override
 What override. More...
 

Detailed Description

All exceptions of the raylib-cpp library will inherit from this class.

Constructor & Destructor Documentation

◆ RaylibException()

raylib::ex::RaylibException::RaylibException ( const std::string &  msg,
bool  prefix = true 
)
explicit

RaylibException constructor.

Parameters
msgthe message of the exception
prefixif prefix "[Raylib]" should be added to the message

Member Function Documentation

◆ what()

const char * raylib::ex::RaylibException::what ( ) const
overridenoexcept

What override.

Returns
the message of the exception

The documentation for this class was generated from the following files: