22 #ifndef _ERROR_OBJECT_H_
23 #define _ERROR_OBJECT_H_
26 #include "function_object.h"
30 class ErrorInstanceImp :
public ObjectImp {
32 ErrorInstanceImp(ObjectImp *proto);
34 virtual const ClassInfo *classInfo()
const {
return &info; }
35 static const ClassInfo info;
38 class ErrorPrototypeImp :
public ObjectImp {
40 ErrorPrototypeImp(ExecState *exec,
41 ObjectPrototypeImp *objectProto,
42 FunctionPrototypeImp *funcProto);
45 class ErrorProtoFuncImp :
public InternalFunctionImp {
47 ErrorProtoFuncImp(ExecState *exec, FunctionPrototypeImp *funcProto);
48 virtual bool implementsCall()
const;
49 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);
52 class ErrorObjectImp :
public InternalFunctionImp {
54 ErrorObjectImp(ExecState *exec, FunctionPrototypeImp *funcProto,
55 ErrorPrototypeImp *errorProto);
57 virtual bool implementsConstruct()
const;
58 virtual Object construct(ExecState *exec,
const List &args);
60 virtual bool implementsCall()
const;
61 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);
68 class NativeErrorPrototypeImp :
public ObjectImp {
70 NativeErrorPrototypeImp(ExecState *exec, ErrorPrototypeImp *errorProto,
71 ErrorType et, UString name, UString message);
76 class NativeErrorImp :
public InternalFunctionImp {
78 NativeErrorImp(ExecState *exec, FunctionPrototypeImp *funcProto,
81 virtual bool implementsConstruct()
const;
82 virtual Object construct(ExecState *exec,
const List &args);
83 virtual bool implementsCall()
const;
84 virtual Value call(ExecState *exec, Object &thisObj,
const List &args);
88 virtual const ClassInfo *classInfo()
const {
return &info; }
89 static const ClassInfo info;