21 #ifndef _ERROR_OBJECT_H_
22 #define _ERROR_OBJECT_H_
25 #include "function_object.h"
29 class ErrorInstanceImp :
public ObjectImp {
31 ErrorInstanceImp(ObjectImp *proto);
33 virtual const ClassInfo *classInfo()
const {
return &info; }
34 static const ClassInfo info;
37 class ErrorPrototypeImp :
public ObjectImp {
39 ErrorPrototypeImp(ExecState *exec,
40 ObjectPrototypeImp *objectProto,
41 FunctionPrototypeImp *funcProto);
44 class ErrorProtoFuncImp :
public InternalFunctionImp {
46 ErrorProtoFuncImp(ExecState *exec, FunctionPrototypeImp *funcProto);
47 virtual bool implementsCall()
const;
48 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);
51 class ErrorObjectImp :
public InternalFunctionImp {
53 ErrorObjectImp(ExecState *exec, FunctionPrototypeImp *funcProto,
54 ErrorPrototypeImp *errorProto);
56 virtual bool implementsConstruct()
const;
57 virtual Object construct(ExecState *exec,
const List &args);
59 virtual bool implementsCall()
const;
60 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);
67 class NativeErrorPrototypeImp :
public ObjectImp {
69 NativeErrorPrototypeImp(ExecState *exec, ErrorPrototypeImp *errorProto,
70 ErrorType et, UString name, UString message);
75 class NativeErrorImp :
public InternalFunctionImp {
77 NativeErrorImp(ExecState *exec, FunctionPrototypeImp *funcProto,
80 virtual bool implementsConstruct()
const;
81 virtual Object construct(ExecState *exec,
const List &args);
82 virtual bool implementsCall()
const;
83 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);
87 virtual const ClassInfo *classInfo()
const {
return &info; }
88 static const ClassInfo info;