OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
NeedObjectContext Class Reference

#include <C4AulDefFunc.h>

Inheritance diagram for NeedObjectContext:
[legend]
Collaboration diagram for NeedObjectContext:
[legend]

Public Member Functions

 NeedObjectContext (const char *function)
 
virtual const char * what () const noexcept
 

Protected Attributes

StdCopyStrBuf sMessage
 

Detailed Description

Definition at line 81 of file C4AulDefFunc.h.

Constructor & Destructor Documentation

NeedObjectContext::NeedObjectContext ( const char *  function)
inline

Definition at line 84 of file C4AulDefFunc.h.

84 : C4AulExecError(FormatString("%s: must be called from object context", function).getData()) {}
C4AulExecError(const char *szError)
Definition: C4AulExec.cpp:35
StdStrBuf FormatString(const char *szFmt,...)
Definition: StdBuf.cpp:277

Member Function Documentation

virtual const char* C4AulError::what ( ) const
virtualnoexceptinherited

Member Data Documentation

StdCopyStrBuf C4AulError::sMessage
protectedinherited

Definition at line 46 of file C4Aul.h.

Referenced by C4AulExecError::C4AulExecError(), and C4AulParseError::C4AulParseError().


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