summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/DOMCoreException.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/DOMCoreException.h')
-rw-r--r--Source/WebCore/dom/DOMCoreException.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/WebCore/dom/DOMCoreException.h b/Source/WebCore/dom/DOMCoreException.h
index cc21a7a14..87b421d6c 100644
--- a/Source/WebCore/dom/DOMCoreException.h
+++ b/Source/WebCore/dom/DOMCoreException.h
@@ -10,7 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
+ * 3. Neither the name of Apple Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -26,8 +26,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMCoreException_h
-#define DOMCoreException_h
+#pragma once
#include "ExceptionBase.h"
@@ -35,14 +34,16 @@ namespace WebCore {
class DOMCoreException : public ExceptionBase {
public:
- static PassRefPtr<DOMCoreException> create(const ExceptionCodeDescription& description)
+ static Ref<DOMCoreException> create(const ExceptionCodeDescription& description)
{
- return adoptRef(new DOMCoreException(description));
+ return adoptRef(*new DOMCoreException(description));
}
+ static Ref<DOMCoreException> create(const String& message, const String& name);
static bool initializeDescription(ExceptionCode, ExceptionCodeDescription*);
-private:
+protected:
+ DOMCoreException(ExceptionCode, const String& message, const String& name);
explicit DOMCoreException(const ExceptionCodeDescription& description)
: ExceptionBase(description)
{
@@ -50,5 +51,3 @@ private:
};
} // namespace WebCore
-
-#endif // DOMCoreException_h