载入中...
搜索中...
未找到
eve::ScriptException类 参考

Exception raised at the public Runtime boundary. 更多...

#include <Runtime.h>

类 eve::ScriptException 继承关系图:

Public 成员函数

 ScriptException (ScriptStage stage, std::string source, uint64_t scriptId, const std::string &message)
 
 ScriptException (ScriptStage stage, std::string source, uint64_t scriptId, const script::ScriptErrorContext &context)
 Constructs from a captured script error context.
 
ScriptStage stage () const noexcept
 
const std::string & source () const noexcept
 
uint64_t scriptId () const noexcept
 
bool hasLocation () const noexcept
 True when the exception carries a script source line.
 
int line () const noexcept
 1-based throw/compile site line; -1 when unknown.
 
int column () const noexcept
 1-based compile column; -1 when unknown.
 
const std::string & function () const noexcept
 Function name at the throw site; empty when unknown.
 
const std::string & stackTrace () const noexcept
 Multi-line call stack captured at the throw site.
 
bool reported () const noexcept
 True when a reporter (e.g. DevTool hook) already handled it.
 

详细描述

Exception raised at the public Runtime boundary.

在文件 Runtime.h53 行定义.

构造及析构函数说明

◆ ScriptException() [1/2]

eve::ScriptException::ScriptException ( ScriptStage  stage,
std::string  source,
uint64_t  scriptId,
const std::string &  message 
)

在文件 Runtime.cpp288 行定义.

引用了 scriptId(), source() , 以及 stage().

◆ ScriptException() [2/2]

eve::ScriptException::ScriptException ( ScriptStage  stage,
std::string  source,
uint64_t  scriptId,
const script::ScriptErrorContext context 
)

Constructs from a captured script error context.

参数
stageLifecycle stage that failed.
sourceSource name of the failing script.
scriptIdId of the failing script (0 when unknown).
contextStructured error payload (message, site, stack).

在文件 Runtime.cpp300 行定义.

引用了 eve::script::formatScriptError(), scriptId(), source() , 以及 stage().

成员函数说明

◆ column()

int eve::ScriptException::column ( ) const
inlinenoexcept

1-based compile column; -1 when unknown.

在文件 Runtime.h75 行定义.

◆ function()

const std::string & eve::ScriptException::function ( ) const
inlinenoexcept

Function name at the throw site; empty when unknown.

在文件 Runtime.h77 行定义.

◆ hasLocation()

bool eve::ScriptException::hasLocation ( ) const
inlinenoexcept

True when the exception carries a script source line.

在文件 Runtime.h71 行定义.

◆ line()

int eve::ScriptException::line ( ) const
inlinenoexcept

1-based throw/compile site line; -1 when unknown.

在文件 Runtime.h73 行定义.

◆ reported()

bool eve::ScriptException::reported ( ) const
inlinenoexcept

True when a reporter (e.g. DevTool hook) already handled it.

在文件 Runtime.h81 行定义.

◆ scriptId()

uint64_t eve::ScriptException::scriptId ( ) const
inlinenoexcept

在文件 Runtime.h69 行定义.

被这些函数引用 ScriptException() , 以及 ScriptException().

◆ source()

const std::string & eve::ScriptException::source ( ) const
inlinenoexcept

在文件 Runtime.h68 行定义.

被这些函数引用 eve::Runtime::reload(), ScriptException() , 以及 ScriptException().

◆ stackTrace()

const std::string & eve::ScriptException::stackTrace ( ) const
inlinenoexcept

Multi-line call stack captured at the throw site.

在文件 Runtime.h79 行定义.

◆ stage()

ScriptStage eve::ScriptException::stage ( ) const
inlinenoexcept

在文件 Runtime.h67 行定义.

被这些函数引用 ScriptException() , 以及 ScriptException().


该类的文档由以下文件生成: