You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/07/15 21:25:49 UTC
cvs commit: xml-xerces/c/src/xercesc/dom/impl DOMErrorImpl.cpp DOMErrorImpl.hpp
tng 2002/07/15 12:25:49
Modified: c/src/xercesc/dom/impl DOMErrorImpl.cpp DOMErrorImpl.hpp
Log:
DOM L3: declare a dummy DOMError::set/getRelatedException
Revision Changes Path
1.3 +22 -12 xml-xerces/c/src/xercesc/dom/impl/DOMErrorImpl.cpp
Index: DOMErrorImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMErrorImpl.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DOMErrorImpl.cpp 24 May 2002 14:02:07 -0000 1.2
+++ DOMErrorImpl.cpp 15 Jul 2002 19:25:49 -0000 1.3
@@ -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 @@
fLocation = location;
}
+
+void DOMErrorImpl::setRelatedException(void* exception) const
+{
+ throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
+}
+
1.3 +43 -14 xml-xerces/c/src/xercesc/dom/impl/DOMErrorImpl.hpp
Index: DOMErrorImpl.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMErrorImpl.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DOMErrorImpl.hpp 30 May 2002 19:26:00 -0000 1.2
+++ DOMErrorImpl.hpp 15 Jul 2002 19:25:49 -0000 1.3
@@ -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 @@
, const XMLCh* const message
, DOMLocator* const location
);
-
+
/** Desctructor */
virtual ~DOMErrorImpl();
@@ -122,6 +125,16 @@
*/
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 @@
*/
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&);
@@ -214,6 +238,11 @@
inline DOMLocator* DOMErrorImpl::getLocation() const
{
return fLocation;
+}
+
+inline void* DOMErrorImpl::getRelatedException() const
+{
+ return 0;
}
// ---------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org