OpenClonk
NeedNonGlobalContext Class Reference

#include <C4AulDefFunc.h>

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

Public Member Functions

 NeedNonGlobalContext (const char *function)
 
const char * what () const noexcept override
 

Protected Attributes

StdCopyStrBuf sMessage
 

Detailed Description

Definition at line 89 of file C4AulDefFunc.h.

Constructor & Destructor Documentation

◆ NeedNonGlobalContext()

NeedNonGlobalContext::NeedNonGlobalContext ( const char *  function)
inline

Definition at line 92 of file C4AulDefFunc.h.

92 : C4AulExecError(FormatString("%s: call must not be from global context", function).getData()) {}
StdStrBuf FormatString(const char *szFmt,...)
Definition: StdBuf.cpp:270
C4AulExecError(const char *szError)
Definition: C4AulExec.cpp:31

Member Function Documentation

◆ what()

const char * C4AulError::what ( ) const
overridenoexceptinherited

Definition at line 59 of file C4Aul.cpp.

60 {
61  return sMessage ? sMessage.getData() : "(unknown error)";
62 }
StdCopyStrBuf sMessage
Definition: C4Aul.h:44
const char * getData() const
Definition: StdBuf.h:442

References StdStrBuf::getData(), and C4AulError::sMessage.

Referenced by C4PropList::Call(), C4AulFunc::CheckParTypes(), C4AulExec::DirectExec(), C4AulScriptEngine::Link(), C4AulParse::Parse_Script(), C4AulCompiler::PreparseAstVisitor::visit(), and C4AulCompiler::ConstantResolver::visit().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ sMessage

StdCopyStrBuf C4AulError::sMessage
protectedinherited

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