#include "ExceptionBase.h"
-#if ENABLE(XPATH)
-
namespace WebCore {
- class XPathException : public ExceptionBase {
- public:
- static PassRefPtr<XPathException> create(const ExceptionCodeDescription& description)
- {
- return adoptRef(new XPathException(description));
- }
-
- static const int XPathExceptionOffset = 400;
- static const int XPathExceptionMax = 499;
+class XPathException : public ExceptionBase {
+public:
+ static PassRefPtr<XPathException> create(const ExceptionCodeDescription& description)
+ {
+ return adoptRef(new XPathException(description));
+ }
- enum XPathExceptionCode {
- INVALID_EXPRESSION_ERR = XPathExceptionOffset + 51,
- TYPE_ERR
- };
+ static const int XPathExceptionOffset = 400;
+ static const int XPathExceptionMax = 499;
- private:
- XPathException(const ExceptionCodeDescription& description)
- : ExceptionBase(description)
- {
- }
+ enum XPathExceptionCode {
+ INVALID_EXPRESSION_ERR = XPathExceptionOffset + 51,
+ TYPE_ERR
};
-} // namespace WebCore
+ static bool initializeDescription(ExceptionCode, ExceptionCodeDescription*);
-#endif // ENABLE(XPATH)
+private:
+ XPathException(const ExceptionCodeDescription& description)
+ : ExceptionBase(description)
+ {
+ }
+};
+
+} // namespace WebCore
#endif // XPathException_h