namespace WebCore {
- class XMLHttpRequestException : public ExceptionBase {
- public:
- static PassRefPtr<XMLHttpRequestException> create(const ExceptionCodeDescription& description)
- {
- return adoptRef(new XMLHttpRequestException(description));
- }
-
- static const int XMLHttpRequestExceptionOffset = 500;
- static const int XMLHttpRequestExceptionMax = 699;
-
- enum XMLHttpRequestExceptionCode {
- NETWORK_ERR = XMLHttpRequestExceptionOffset + 101,
- ABORT_ERR
- };
-
- private:
- XMLHttpRequestException(const ExceptionCodeDescription& description)
- : ExceptionBase(description)
- {
- }
+class XMLHttpRequestException : public ExceptionBase {
+public:
+ static PassRefPtr<XMLHttpRequestException> create(const ExceptionCodeDescription& description)
+ {
+ return adoptRef(new XMLHttpRequestException(description));
+ }
+
+ static const int XMLHttpRequestExceptionOffset = 500;
+ static const int XMLHttpRequestExceptionMax = 699;
+
+ enum XMLHttpRequestExceptionCode {
+ NETWORK_ERR = XMLHttpRequestExceptionOffset + 101,
+ ABORT_ERR
};
+ static bool initializeDescription(ExceptionCode, ExceptionCodeDescription*);
+
+private:
+ XMLHttpRequestException(const ExceptionCodeDescription& description)
+ : ExceptionBase(description)
+ {
+ }
+};
+
} // namespace WebCore
#endif // XMLHttpRequestException_h