Beatmup
Beatmup::NullTaskInput Class Reference

Exception thrown when a required input of an AbstractTask was not assigned prior to the task execution. More...

#include <exception.h>

Inheritance diagram for Beatmup::NullTaskInput:
Beatmup::Exception

Public Member Functions

 NullTaskInput (const char *which)
 
- Public Member Functions inherited from Beatmup::Exception
virtual const char * what () const NOEXCEPT override
 

Static Public Member Functions

static void check (const void *pointer, const char *which)
 

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

Exception thrown when a required input of an AbstractTask was not assigned prior to the task execution.

Definition at line 111 of file exception.h.

Constructor & Destructor Documentation

◆ NullTaskInput()

Beatmup::NullTaskInput::NullTaskInput ( const char *  which)
inline

Definition at line 113 of file exception.h.

113 : Exception("Task input is not set: %s", which) {}
Exception(const char *message)
Definition: exception.h:41

Member Function Documentation

◆ check()

static void Beatmup::NullTaskInput::check ( const void *  pointer,
const char *  which 
)
inlinestatic

Definition at line 115 of file exception.h.

115  {
116  if (!pointer)
117  throw NullTaskInput(which);
118  }
NullTaskInput(const char *which)
Definition: exception.h:113

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