diff options
Diffstat (limited to 'WebCore/dom/DOMCoreException.h')
-rw-r--r-- | WebCore/dom/DOMCoreException.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/WebCore/dom/DOMCoreException.h b/WebCore/dom/DOMCoreException.h index 48bf52c..3c89694 100644 --- a/WebCore/dom/DOMCoreException.h +++ b/WebCore/dom/DOMCoreException.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007 Apple Inc. All rights reserved. + * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,7 +27,7 @@ */ #ifndef DOMCoreException_h -#define DOMCodeException_h +#define DOMCoreException_h #include "ExceptionBase.h" @@ -35,6 +35,12 @@ namespace WebCore { class DOMCoreException : public ExceptionBase { public: + static PassRefPtr<DOMCoreException> create(const ExceptionCodeDescription& description) + { + return adoptRef(new DOMCoreException(description)); + } + + private: DOMCoreException(const ExceptionCodeDescription& description) : ExceptionBase(description) { |