]>
git.saurik.com Git - iphone-api.git/blob - WebCore/RangeException.h
2 * This file is part of the DOM implementation for KDE.
4 * (C) 1999 Lars Knoll (knoll@kde.org)
5 * (C) 2000 Gunnstein Lye (gunnstein@netcom.no)
6 * (C) 2000 Frederik Holljen (frederik.holljen@hig.no)
7 * (C) 2001 Peter Kelly (pmk@post.com)
8 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public License
21 * along with this library; see the file COPYING.LIB. If not, write to
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA.
27 #ifndef RangeException_h
28 #define RangeException_h
30 #include "ExceptionBase.h"
34 class RangeException
: public ExceptionBase
{
36 static PassRefPtr
<RangeException
> create(const ExceptionCodeDescription
& description
)
38 return adoptRef(new RangeException(description
));
41 static const int RangeExceptionOffset
= 200;
42 static const int RangeExceptionMax
= 299;
44 enum RangeExceptionCode
{
45 BAD_BOUNDARYPOINTS_ERR
= RangeExceptionOffset
+ 1,
50 RangeException(const ExceptionCodeDescription
& description
)
51 : ExceptionBase(description
)
56 } // namespace WebCore
58 #endif // RangeException_h