Move type-specific exception descriptions into the implementation files for each type
https://bugs.webkit.org/show_bug.cgi?id=71081

Reviewed by Eric Seidel.

There's no reason to centralize this information.  It belongs with each
exception type.  This patch is in preparation for autogenerating the central file.

* WebCore.xcodeproj/project.pbxproj:
* dom/DOMCoreException.cpp: Added.
(WebCore::DOMCoreException::initializeDescription):
* dom/DOMCoreException.h:
* dom/EventException.cpp: Copied from Source/WebCore/xml/XMLHttpRequestException.h.
(WebCore::EventException::initializeDescription):
* dom/EventException.h:
* dom/ExceptionBase.h:
(WebCore::ExceptionBase::code):
(WebCore::ExceptionBase::name):
(WebCore::ExceptionBase::message):
(WebCore::ExceptionBase::description):
* dom/ExceptionCode.cpp:
(WebCore::getExceptionCodeDescription):
* dom/RangeException.cpp: Copied from Source/WebCore/xml/XPathException.h.
(WebCore::RangeException::initializeDescription):
* dom/RangeException.h:
* fileapi/FileException.cpp: Added.
(WebCore::FileException::initializeDescription):
* fileapi/FileException.h:
* fileapi/OperationNotAllowedException.cpp: Copied from Source/WebCore/xml/XMLHttpRequestException.h.
(WebCore::OperationNotAllowedException::initializeDescription):
* fileapi/OperationNotAllowedException.h:
* storage/IDBDatabaseException.cpp: Added.
(WebCore::IDBDatabaseException::initializeDescription):
* storage/IDBDatabaseException.h:
* storage/SQLException.cpp: Added.
(WebCore::SQLException::initializeDescription):
* storage/SQLException.h:
* svg/SVGException.cpp: Copied from Source/WebCore/dom/EventException.h.
(WebCore::SVGException::initializeDescription):
* svg/SVGException.h:
* xml/XMLHttpRequestException.cpp: Copied from Source/WebCore/xml/XMLHttpRequestException.h.
(WebCore::XMLHttpRequestException::initializeDescription):
* xml/XMLHttpRequestException.h:
* xml/XPathException.cpp: Copied from Source/WebCore/xml/XPathException.h.
(WebCore::XPathException::initializeDescription):
* xml/XPathException.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@98686 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/GNUmakefile.list.am b/Source/WebCore/GNUmakefile.list.am
index 3046686..76b04bd 100644
--- a/Source/WebCore/GNUmakefile.list.am
+++ b/Source/WebCore/GNUmakefile.list.am
@@ -1188,6 +1188,7 @@
 	Source/WebCore/dom/DocumentTiming.h \
 	Source/WebCore/dom/DocumentType.cpp \
 	Source/WebCore/dom/DocumentType.h \
+	Source/WebCore/dom/DOMCoreException.cpp \
 	Source/WebCore/dom/DOMCoreException.h \
 	Source/WebCore/dom/DOMImplementation.cpp \
 	Source/WebCore/dom/DOMImplementation.h \
@@ -1216,6 +1217,7 @@
 	Source/WebCore/dom/EventDispatchMediator.h \
 	Source/WebCore/dom/EventDispatcher.cpp \
 	Source/WebCore/dom/EventDispatcher.h \
+	Source/WebCore/dom/EventException.cpp \
 	Source/WebCore/dom/EventException.h \
 	Source/WebCore/dom/EventFactory.h \
 	Source/WebCore/dom/EventListener.h \
@@ -1300,6 +1302,7 @@
 	Source/WebCore/dom/QualifiedName.h \
 	Source/WebCore/dom/RangeBoundaryPoint.h \
 	Source/WebCore/dom/Range.cpp \
+	Source/WebCore/dom/RangeException.cpp \
 	Source/WebCore/dom/RangeException.h \
 	Source/WebCore/dom/Range.h \
 	Source/WebCore/dom/RawDataDocumentParser.h \
@@ -1532,6 +1535,8 @@
 	Source/WebCore/fileapi/FileError.h \
 	Source/WebCore/fileapi/FileException.h \
 	Source/WebCore/fileapi/File.h \
+	Source/WebCore/fileapi/FileException.cpp \
+	Source/WebCore/fileapi/FileException.h \
 	Source/WebCore/fileapi/FileList.cpp \
 	Source/WebCore/fileapi/FileList.h \
 	Source/WebCore/fileapi/FileReader.cpp \
@@ -1562,6 +1567,7 @@
 	Source/WebCore/fileapi/LocalFileSystem.h \
 	Source/WebCore/fileapi/MetadataCallback.h \
 	Source/WebCore/fileapi/Metadata.h \
+	Source/WebCore/fileapi/OperationNotAllowedException.cpp \
 	Source/WebCore/fileapi/OperationNotAllowedException.h \
 	Source/WebCore/fileapi/ThreadableBlobRegistry.cpp \
 	Source/WebCore/fileapi/ThreadableBlobRegistry.h \
@@ -3394,6 +3400,7 @@
 	Source/WebCore/storage/IDBDatabaseCallbacksImpl.h \
 	Source/WebCore/storage/IDBDatabase.cpp \
 	Source/WebCore/storage/IDBDatabaseError.h \
+	Source/WebCore/storage/IDBDatabaseException.cpp \
 	Source/WebCore/storage/IDBDatabaseException.h \
 	Source/WebCore/storage/IDBDatabase.h \
 	Source/WebCore/storage/IDBEventDispatcher.cpp \
@@ -3443,6 +3450,7 @@
 	Source/WebCore/storage/OriginUsageRecord.h \
 	Source/WebCore/storage/SQLCallbackWrapper.h \
 	Source/WebCore/storage/SQLError.h \
+	Source/WebCore/storage/SQLException.cpp \
 	Source/WebCore/storage/SQLException.h \
 	Source/WebCore/storage/SQLResultSet.cpp \
 	Source/WebCore/storage/SQLResultSet.h \
@@ -3618,6 +3626,7 @@
 	Source/WebCore/svg/SVGElementRareData.h \
 	Source/WebCore/svg/SVGEllipseElement.cpp \
 	Source/WebCore/svg/SVGEllipseElement.h \
+	Source/WebCore/svg/SVGException.cpp \
 	Source/WebCore/svg/SVGException.h \
 	Source/WebCore/svg/SVGExternalResourcesRequired.cpp \
 	Source/WebCore/svg/SVGExternalResourcesRequired.h \
@@ -3942,6 +3951,7 @@
 	Source/WebCore/xml/XMLErrors.cpp \
 	Source/WebCore/xml/XMLErrors.h \
 	Source/WebCore/xml/XMLHttpRequest.cpp \
+	Source/WebCore/xml/XMLHttpRequestException.cpp \
 	Source/WebCore/xml/XMLHttpRequestException.h \
 	Source/WebCore/xml/XMLHttpRequest.h \
 	Source/WebCore/xml/XMLHttpRequestProgressEvent.h \
@@ -3955,6 +3965,7 @@
 	Source/WebCore/xml/XMLSerializer.h \
 	Source/WebCore/xml/XPathEvaluator.cpp \
 	Source/WebCore/xml/XPathEvaluator.h \
+	Source/WebCore/xml/XPathException.cpp \
 	Source/WebCore/xml/XPathException.h \
 	Source/WebCore/xml/XPathExpression.cpp \
 	Source/WebCore/xml/XPathExpression.h \