tizen beta release
[framework/web/webkit-efl.git] / Source / WebCore / xml / XPathException.h
index 45ad628..d392a8e 100755 (executable)
 
 #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