Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::script::ScriptError Struct Reference

Where and why a script failed. More...

#include <aegis2d/script/state.hpp>

Public Attributes

std::string chunk
 Name of the chunk: the file, or the name given to ScriptState::run().
 
int line = 0
 Line of the error in the chunk, or 0 when Lua does not tell it.
 
std::string message
 What went wrong, without the chunk and the line.
 

Detailed Description

Where and why a script failed.

Member Data Documentation

◆ chunk

std::string aegis2d::script::ScriptError::chunk

Name of the chunk: the file, or the name given to ScriptState::run().

◆ line

int aegis2d::script::ScriptError::line = 0

Line of the error in the chunk, or 0 when Lua does not tell it.

◆ message

std::string aegis2d::script::ScriptError::message

What went wrong, without the chunk and the line.


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