KJS::Error

Search for usage in LXR

#include <object.h>

Static Public Member Functions

static JSObject * create (ExecState *, ErrorType, const char *message)
 
static JSObject * create (ExecState *, ErrorType, const UString &message, int lineNumber, int sourceId, const UString &sourceURL)
 

Static Public Attributes

static const char *const *const errorNames = errorNamesArr
 

Detailed Description

Factory methods for error objects.

Definition at line 576 of file object.h.

Member Function Documentation

◆ create()

JSObject * KJS::Error::create ( ExecState exec,
ErrorType  errtype,
const UString message,
int  lineNumber,
int  sourceId,
const UString sourceURL 
)
static

Factory method for error objects.

Parameters
execThe current execution state
errtypeType of error.
messageOptional error message.
lineNumberOptional line number.
sourceIdOptional source id.
sourceURLOptional source URL.

Definition at line 813 of file object.cpp.

Member Data Documentation

◆ errorNames

const char *const *const KJS::Error::errorNames = errorNamesArr
static

Array of error names corresponding to ErrorType.

Definition at line 595 of file object.h.


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 May 8 2023 03:51:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.