Overte C++ Documentation
ScriptException Class Reference

Scripting exception. More...

#include <ScriptException.h>

Inheritance diagram for ScriptException:

Public Member Functions

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

Public Attributes

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

Scripting exception.

Emitted from the scripting engine when an exception happens inside it. This is the base class.

Member Function Documentation

◆ clone()

virtual std::shared_ptr<ScriptException> ScriptException::clone ( ) const
inlinevirtual

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 in ScriptRuntimeException, and ScriptEngineException.

Member Data Documentation

◆ additionalInfo

QString ScriptException::additionalInfo

Additional information about the exception.

This is additional information added at the place where the exception happened. It may contain information about what the system was doing when the exception happened.


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