ArkScript
A small, fast, functional and scripting language for video games
Ark::CodeError Struct Referencefinal

CodeError thrown by the compiler (parser, macro processor, optimizer, and compiler itself) More...

#include <Exceptions.hpp>

Inheritance diagram for Ark::CodeError:
[legend]
Collaboration diagram for Ark::CodeError:
[legend]

Public Member Functions

 CodeError (const std::string &what, CodeErrorContext ctx, std::optional< CodeErrorContext > maybe_more_context=std::nullopt)
 
- Public Member Functions inherited from Ark::Error
 Error (const std::string &message)
 
virtual std::string details (bool colorize) const
 

Public Attributes

const CodeErrorContext context
 
const std::optional< CodeErrorContextadditional_context
 

Detailed Description

CodeError thrown by the compiler (parser, macro processor, optimizer, and compiler itself)

Definition at line 130 of file Exceptions.hpp.

Constructor & Destructor Documentation

◆ CodeError()

Ark::CodeError::CodeError ( const std::string & what,
CodeErrorContext ctx,
std::optional< CodeErrorContext > maybe_more_context = std::nullopt )
inline

Definition at line 135 of file Exceptions.hpp.

Member Data Documentation

◆ additional_context

const std::optional<CodeErrorContext> Ark::CodeError::additional_context

Definition at line 133 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().

◆ context

const CodeErrorContext Ark::CodeError::context

Definition at line 132 of file Exceptions.hpp.

Referenced by Ark::Diagnostics::generate().


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