don't discard iframe children.
[kdelibs.git] / khtml / svg / SVGException.h
blob000b117411500a55dfd5c27cfe8ac376be6e9508
1 /*
2 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
3 * Copyright (C) 2006 Apple Computer, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
22 #ifndef SVGException_h
23 #define SVGException_h
25 #if ENABLE(SVG)
27 /*#include "ExceptionBase.h"*/
28 #include "wtf/RefCounted.h"
30 namespace WebCore {
32 class SVGException : public RefCounted<SVGException> /*: public ExceptionBase*/ {
33 public:
34 /*SVGException(const ExceptionCodeDescription& description)
35 : ExceptionBase(description)
37 }*/
39 static const int SVGExceptionOffset = 300;
40 static const int SVGExceptionMax = 399;
42 enum SVGExceptionCode {
43 SVG_WRONG_TYPE_ERR = SVGExceptionOffset,
44 SVG_INVALID_VALUE_ERR = SVGExceptionOffset + 1,
45 SVG_MATRIX_NOT_INVERTABLE = SVGExceptionOffset + 2
48 // KHTML compatibility code
49 public:
50 unsigned short code() const { return m_code; }
51 String name() const { return m_name; }
52 String message() const { return m_message; }
54 String toString() const {
55 // FIXME not implemented
56 return String();
59 private:
60 unsigned short m_code;
61 String m_name;
62 String m_message;
65 } // namespace WebCore
67 #endif // ENABLE(SVG)
69 #endif // SVGException_h