Search for usage in LXR

KJSContext Class Reference

#include <kjscontext.h>

Public Member Functions

bool hasException () const
KJSInterpreter interpreter ()
KJSObject throwException (const QString &message) const

Detailed Description

A class representing a JavaScript execution context.

Execution context

Definition at line 41 of file kjscontext.h.

Member Function Documentation

◆ hasException()

bool KJSContext::hasException ( ) const

Returns true if this context has an unhandled exception.

Definition at line 36 of file kjscontext.cpp.

◆ interpreter()

KJSInterpreter KJSContext::interpreter ( )

Returns the currently executing interpreter.

Definition at line 52 of file kjscontext.cpp.

◆ throwException()

KJSObject KJSContext::throwException ( const QString message) const

Throws a general exception with the specified error message.

Definition at line 41 of file kjscontext.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 03:56:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.