ge211  2021.5.1
A student game engine
Exception_base Class Reference

Detailed Description

The root of the ge211 exception hierarchy.

Exceptions thrown by ge211 are derived from Exception_base.

The constructor of Exception_base is private, which means that you cannot construct it directly, nor can you derive from it. However, its derived class Client_logic_error has a public constructor, so you can use it as you wish.

Definition at line 23 of file ge211_error.hxx.

+ Inheritance diagram for Exception_base:
+ Collaboration diagram for Exception_base:

Public Member Functions

const char * what () const override
 The error message associated with the exception. More...
 
- Public Member Functions inherited from exception
what (T... args)
 
~exception (T... args)
 
operator= (T... args)
 
exception (T... args)
 

Member Function Documentation

◆ what()

const char * what ( ) const
override

The error message associated with the exception.

This pointer is guaranteed to be good as long as the exception exists and hasn't been mutated. If you need it for longer, copy it to a std::string.

Definition at line 20 of file ge211_error.cxx.


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