Beatmup
Beatmup::RuntimeError Class Reference

#include <exception.h>

Inheritance diagram for Beatmup::RuntimeError:
Beatmup::Exception

Public Member Functions

 RuntimeError (const std::string &message)
 
- Public Member Functions inherited from Beatmup::Exception
virtual const char * what () const NOEXCEPT override
 

Static Public Member Functions

static void check (const bool condition, const std::string &message)
 

Additional Inherited Members

- Protected Member Functions inherited from Beatmup::Exception
 Exception (const char *message)
 
template<typename ... Args>
 Exception (const char *message, const Args &... args)
 

Detailed Description

Definition at line 61 of file exception.h.

Constructor & Destructor Documentation

◆ RuntimeError()

Beatmup::RuntimeError::RuntimeError ( const std::string &  message)
inline

Definition at line 63 of file exception.h.

63 : Exception(message.c_str()) {}
Exception(const char *message)
Definition: exception.h:41
std::string message
Definition: exception.h:39

Member Function Documentation

◆ check()

static void Beatmup::RuntimeError::check ( const bool  condition,
const std::string &  message 
)
inlinestatic

Definition at line 64 of file exception.h.

64  {
65  if (!condition)
66  throw RuntimeError(message);
67  }
RuntimeError(const std::string &message)
Definition: exception.h:63

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