KJS::Error Class Reference
Factory methods for error objects.
More...
#include <object.h>
List of all members.
|
Static Public Member Functions |
static Object | create (ExecState *exec, ErrorType errtype=GeneralError, const char *message=0, int lineno=-1, int sourceId=-1) |
Static Public Attributes |
static const char *const
*const | errorNames = errorNamesArr |
Detailed Description
Factory methods for error objects.
Definition at line 625 of file object.h.
Member Function Documentation
Object Error::create |
( |
ExecState * |
exec, |
|
|
ErrorType |
errtype = GeneralError , |
|
|
const char * |
message = 0 , |
|
|
int |
lineno = -1 , |
|
|
int |
sourceId = -1 |
|
) |
[static] |
|
|
Factory method for error objects.
- Parameters:
-
| exec | The current execution state |
| errtype | Type of error. |
| message | Optional error message. |
| lineno | Optional line number. |
| lineno | Optional source id. |
Definition at line 501 of file object.cpp.
References KJS::List::append(), KJS::Interpreter::builtinError(), KJS::Interpreter::builtinEvalError(), KJS::Interpreter::builtinRangeError(), KJS::Interpreter::builtinReferenceError(), KJS::Interpreter::builtinSyntaxError(), KJS::Interpreter::builtinTypeError(), KJS::Interpreter::builtinURIError(), KJS::Object::construct(), KJS::Object::dynamicCast(), errorNames, KJS::ExecState::interpreter(), and KJS::Object::put().
Referenced by KJS::Object::call(), KJS::NumberProtoFuncImp::call(), KJS::FunctionProtoFuncImp::call(), KJS::GlobalFuncImp::call(), KJS::DateProtoFuncImp::call(), KJS::ArrayProtoFuncImp::call(), KJS::RegExpObjectImp::construct(), KJS::FunctionObjectImp::construct(), KJS::ObjectImp::defaultValue(), KJS::Reference::deleteValue(), KJS::InterpreterImp::evaluate(), KJS::Reference::getBase(), KJS::Reference::getValue(), KJS::ExecState::hadException(), KJS::InternalFunctionImp::hasInstance(), KJS::ArrayInstanceImp::put(), KJS::Reference::putValue(), KJS::Node::throwError(), KJS::NullImp::toObject(), and KJS::UndefinedImp::toObject(). |
Member Data Documentation
|
Array of error names corresponding to ErrorType.
Definition at line 643 of file object.h.
Referenced by create(). |
The documentation for this class was generated from the following files:
This file is part of the documentation for kjs Library Version 3.4.3.