Overte C++ Documentation
ScriptRuntimeException Class Reference

Exception that ocurred inside the running script. More...

#include <ScriptException.h>

Inheritance diagram for ScriptRuntimeException:
Collaboration diagram for ScriptRuntimeException:

Public Member Functions

virtual std::shared_ptr< ScriptExceptionclone () const override
 Clones this object. More...
 

Public Attributes

ScriptValue thrownValue
 The actual value that was thrown by the script. More...
 
- Public Attributes inherited from ScriptException
QString errorMessage
 Error message.
 
QString additionalInfo
 Additional information about the exception. More...
 
int errorLine
 Error line.
 
int errorColumn
 Error column.
 
QStringList backtrace
 Backtrace.
 

Detailed Description

Exception that ocurred inside the running script.

This is something that went wrong inside the running script.

Member Function Documentation

◆ clone()

virtual std::shared_ptr<ScriptException> ScriptRuntimeException::clone ( ) const
inlineoverridevirtual

Clones this object.

This is used in the scripting engine to ensure that while it can return different exception objects depending on what happened, the returned object is a copy that doesn't allow the caller to accidentally break the ScriptEngine's internal state.

Returns
std::shared_ptr<ScriptException>

Reimplemented from ScriptException.

Member Data Documentation

◆ thrownValue

ScriptValue ScriptRuntimeException::thrownValue

The actual value that was thrown by the script.

The content is completely arbitrary.


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