OpenClonk
StdMeshMaterialError Class Reference

#include <StdMeshMaterial.h>

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

Public Member Functions

 StdMeshMaterialError (const StdStrBuf &message, const char *file, unsigned int line)
 
 ~StdMeshMaterialError () override=default throw ()
 
const char * what () const override throw ()
 

Protected Attributes

StdCopyStrBuf Buf
 

Detailed Description

Definition at line 30 of file StdMeshMaterial.h.

Constructor & Destructor Documentation

◆ StdMeshMaterialError()

StdMeshMaterialError::StdMeshMaterialError ( const StdStrBuf message,
const char *  file,
unsigned int  line 
)

Definition at line 185 of file StdMeshMaterial.cpp.

186 {
187  Buf.Format("%s:%u: %s", file, line, message.getData());
188 }
const char * getData() const
Definition: StdBuf.h:442
void Format(const char *szFmt,...) GNUC_FORMAT_ATTRIBUTE_O
Definition: StdBuf.cpp:174

References Buf, StdStrBuf::Format(), and StdStrBuf::getData().

Here is the call graph for this function:

◆ ~StdMeshMaterialError()

StdMeshMaterialError::~StdMeshMaterialError ( )
throw (
)
overridedefault

Member Function Documentation

◆ what()

const char* StdMeshMaterialError::what ( ) const
throw (
)
inlineoverride

Definition at line 36 of file StdMeshMaterial.h.

36 { return Buf.getData(); }

References Buf, and StdStrBuf::getData().

Here is the call graph for this function:

Member Data Documentation

◆ Buf

StdCopyStrBuf StdMeshMaterialError::Buf
protected

Definition at line 39 of file StdMeshMaterial.h.

Referenced by StdMeshMaterialError(), and what().


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