Beatmup
Beatmup::InvalidArgument Class Reference

#include <exception.h>

Inheritance diagram for Beatmup::InvalidArgument:
Beatmup::Exception Beatmup::OutOfRange

Public Member Functions

 InvalidArgument (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)
 

Protected Member Functions

template<typename datatype >
 InvalidArgument (const char *message, const datatype value)
 
- 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 70 of file exception.h.

Constructor & Destructor Documentation

◆ InvalidArgument() [1/2]

template<typename datatype >
Beatmup::InvalidArgument::InvalidArgument ( const char *  message,
const datatype  value 
)
inlineprotected

Definition at line 72 of file exception.h.

72 : Exception(message, value) {}
Exception(const char *message)
Definition: exception.h:41
std::string message
Definition: exception.h:39

◆ InvalidArgument() [2/2]

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

Definition at line 74 of file exception.h.

74 : Exception(message.c_str()) {}

Member Function Documentation

◆ check()

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

Definition at line 75 of file exception.h.

75  {
76  if (!condition)
77  throw InvalidArgument(message);
78  }
InvalidArgument(const char *message, const datatype value)
Definition: exception.h:72

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