# kjs Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# error_object.h

    00001 // -*- c-basic-offset: 2 -*-
    00002 /*
    00003  *  This file is part of the KDE libraries
    00004  *  Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
    00005  *
    00006  *  This library is free software; you can redistribute it and/or
    00007  *  modify it under the terms of the GNU Lesser General Public
    00008  *  License as published by the Free Software Foundation; either
    00009  *  version 2 of the License, or (at your option) any later version.
    00010  *
    00011  *  This library is distributed in the hope that it will be useful,
    00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00014  *  Lesser General Public License for more details.
    00015  *
    00016  *  You should have received a copy of the GNU Lesser General Public
    00017  *  License along with this library; if not, write to the Free Software
    00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    00019  *
    00020  */
    00021
    00022 #ifndef _ERROR_OBJECT_H_
    00023 #define _ERROR_OBJECT_H_
    00024
    00025 #include "internal.h"
    00026 #include "function_object.h"
    00027
    00028 namespace KJS {
    00029
    00030   class ErrorInstanceImp : public ObjectImp {
    00031   public:
    00032     ErrorInstanceImp(ObjectImp *proto);
    00033
    00034     virtual const ClassInfo *classInfo() const { return &info; }
    00035     static const ClassInfo info;
    00036   };
    00037
    00038   class ErrorPrototypeImp : public ObjectImp {
    00039   public:
    00040     ErrorPrototypeImp(ExecState *exec,
    00041                       ObjectPrototypeImp *objectProto,
    00042                       FunctionPrototypeImp *funcProto);
    00043   };
    00044
    00045   class ErrorProtoFuncImp : public InternalFunctionImp {
    00046   public:
    00047     ErrorProtoFuncImp(ExecState *exec, FunctionPrototypeImp *funcProto);
    00048     virtual bool implementsCall() const;
    00049     virtual Value call(ExecState *exec, Object &thisObj, const List &args);
    00050   };
    00051
    00052   class ErrorObjectImp : public InternalFunctionImp {
    00053   public:
    00054     ErrorObjectImp(ExecState *exec, FunctionPrototypeImp *funcProto,
    00055                    ErrorPrototypeImp *errorProto);
    00056
    00057     virtual bool implementsConstruct() const;
    00058     virtual Object construct(ExecState *exec, const List &args);
    00059
    00060     virtual bool implementsCall() const;
    00061     virtual Value call(ExecState *exec, Object &thisObj, const List &args);
    00062   };
    00063
    00064
    00065
    00066
    00067
    00068   class NativeErrorPrototypeImp : public ObjectImp {
    00069   public:
    00070     NativeErrorPrototypeImp(ExecState *exec, ErrorPrototypeImp *errorProto,
    00071                             ErrorType et, UString name, UString message);
    00072   private:
    00073     ErrorType errType;
    00074   };
    00075
    00076   class NativeErrorImp : public InternalFunctionImp {
    00077   public:
    00078     NativeErrorImp(ExecState *exec, FunctionPrototypeImp *funcProto,
    00079                    const Object &prot);
    00080
    00081     virtual bool implementsConstruct() const;
    00082     virtual Object construct(ExecState *exec, const List &args);
    00083     virtual bool implementsCall() const;
    00084     virtual Value call(ExecState *exec, Object &thisObj, const List &args);
    00085
    00086     virtual void mark();
    00087
    00088     virtual const ClassInfo *classInfo() const { return &info; }
    00089     static const ClassInfo info;
    00090   private:
    00091     ObjectImp *proto;
    00092   };
    00093
    00094 } // namespace
    00095
    00096 #endif

This file is part of the documentation for kjs Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:23:05 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003