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
27 /*#include "ExceptionBase.h"*/
28 #include "wtf/RefCounted.h"
32 class SVGException
: public RefCounted
<SVGException
> /*: public ExceptionBase*/ {
34 /*SVGException(const ExceptionCodeDescription& description)
35 : ExceptionBase(description)
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
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
60 unsigned short m_code
;
65 } // namespace WebCore
69 #endif // SVGException_h