diff --git a/src/xercesc/dom/DOMError.hpp b/src/xercesc/dom/DOMError.hpp index c3b51c58cedfd9af7be5ab3bf7b7ca49ab3c82b9..2781b692d91d5348374b2e328559c6baa4c52482 100644 --- a/src/xercesc/dom/DOMError.hpp +++ b/src/xercesc/dom/DOMError.hpp @@ -59,6 +59,9 @@ /* * $Log$ + * Revision 1.5 2002/07/15 19:25:25 tng + * DOM L3: declare a dummy DOMError::set/getRelatedException + * * Revision 1.4 2002/06/06 21:01:21 tng * [Bug 9639] enum_mem in DOMError clashes with constant. * @@ -169,6 +172,16 @@ public: */ virtual DOMLocator* getLocation() const = 0; + /** + * The related platform dependent exception if any. + * + * <p><b>"Experimental - subject to change"</b></p> + * + * @see setRelatedException + * @since DOM Level 3 + */ + virtual void* getRelatedException() const = 0; + // ----------------------------------------------------------------------- // Setter methods // ----------------------------------------------------------------------- @@ -205,6 +218,17 @@ public: */ virtual void setLocation(DOMLocator* const location) = 0; + /** + * The related platform dependent exception if any. + * + * <p><b>"Experimental - subject to change"</b></p> + * + * @param exception the related exception to set. + * @see getRelatedException + * @since DOM Level 3 + */ + virtual void setRelatedException(void* exception) const = 0; + //@} }; diff --git a/src/xercesc/dom/impl/DOMErrorImpl.cpp b/src/xercesc/dom/impl/DOMErrorImpl.cpp index 0b9df4c93bbcd0d56ee13bf787275f60fef3792a..d5835c38a6b1c03117838d43d131a18391872772 100644 --- a/src/xercesc/dom/impl/DOMErrorImpl.cpp +++ b/src/xercesc/dom/impl/DOMErrorImpl.cpp @@ -1,37 +1,37 @@ /* * The Apache Software License, Version 1.1 - * + * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * + * notice, this list of conditions and the following disclaimer. + * * 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. The end-user documentation included with the redistribution, - * if any, must include the following acknowledgment: + * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. - * + * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this - * software without prior written permission. For written + * software without prior written permission. For written * permission, please contact apache\@apache.org. - * + * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. - * + * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE @@ -45,7 +45,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== - * + * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation, and was * originally based on software copyright (c) 1999, International @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.3 2002/07/15 19:25:49 tng + * DOM L3: declare a dummy DOMError::set/getRelatedException + * * Revision 1.2 2002/05/24 14:02:07 knoaman * Fix complilation error. * @@ -65,6 +68,7 @@ */ #include "DOMErrorImpl.hpp" +#include <xercesc/dom/DOMException.hpp> #include <xercesc/dom/DOMLocator.hpp> // --------------------------------------------------------------------------- @@ -104,3 +108,9 @@ void DOMErrorImpl::setLocation(DOMLocator* const location) fLocation = location; } + +void DOMErrorImpl::setRelatedException(void* exception) const +{ + throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0); +} + diff --git a/src/xercesc/dom/impl/DOMErrorImpl.hpp b/src/xercesc/dom/impl/DOMErrorImpl.hpp index ddc442ab59e9e225476bc1153afe44b2024ee92b..47b896b3a249792e48e420415f6c642ab1db0361 100644 --- a/src/xercesc/dom/impl/DOMErrorImpl.hpp +++ b/src/xercesc/dom/impl/DOMErrorImpl.hpp @@ -1,37 +1,37 @@ /* * The Apache Software License, Version 1.1 - * + * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * + * notice, this list of conditions and the following disclaimer. + * * 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. The end-user documentation included with the redistribution, - * if any, must include the following acknowledgment: + * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. - * + * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this - * software without prior written permission. For written + * software without prior written permission. For written * permission, please contact apache\@apache.org. - * + * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. - * + * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE @@ -45,7 +45,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== - * + * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation, and was * originally based on software copyright (c) 1999, International @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.3 2002/07/15 19:25:49 tng + * DOM L3: declare a dummy DOMError::set/getRelatedException + * * Revision 1.2 2002/05/30 19:26:00 knoaman * documentation update * @@ -92,7 +95,7 @@ public: , const XMLCh* const message , DOMLocator* const location ); - + /** Desctructor */ virtual ~DOMErrorImpl(); @@ -122,6 +125,16 @@ public: */ virtual DOMLocator* getLocation() const; + /** + * The related platform dependent exception if any. + * + * <p><b>"Experimental - subject to change"</b></p> + * + * @see setRelatedException + * @since DOM Level 3 + */ + virtual void* getRelatedException() const; + //@} @@ -165,12 +178,23 @@ public: */ void setAdoptLocation(const bool value); + /** + * The related platform dependent exception if any. + * + * <p><b>"Experimental - subject to change"</b></p> + * + * @param exception the related exception to set. + * @see getRelatedException + * @since DOM Level 3 + */ + virtual void setRelatedException(void* exception) const; + //@} private : /* Unimplemented constructors and operators */ - + /* Copy constructor */ DOMErrorImpl(const DOMErrorImpl&); @@ -216,6 +240,11 @@ inline DOMLocator* DOMErrorImpl::getLocation() const return fLocation; } +inline void* DOMErrorImpl::getRelatedException() const +{ + return 0; +} + // --------------------------------------------------------------------------- // DOMLocatorImpl: Setter methods // ---------------------------------------------------------------------------