You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2001/11/14 23:02:26 UTC
cvs commit: xml-xerces/c/src/validators/datatype YearMonthDatatypeValidator.cpp YearDatatypeValidator.cpp TimeDatatypeValidator.cpp MonthDayDatatypeValidator.cpp MonthDatatypeValidator.cpp DurationDatatypeValidator.cpp DayDatatypeValidator.cpp DateTimeDatatypeValidator.cpp DateDatatypeValidator.cpp
peiyongz 01/11/14 14:02:26
Modified: c/src/validators/datatype YearMonthDatatypeValidator.cpp
YearDatatypeValidator.cpp TimeDatatypeValidator.cpp
MonthDayDatatypeValidator.cpp
MonthDatatypeValidator.cpp
DurationDatatypeValidator.cpp
DayDatatypeValidator.cpp
DateTimeDatatypeValidator.cpp
DateDatatypeValidator.cpp
Log:
rethrow exception with original error message.
Revision Changes Path
1.2 +11 -2 xml-xerces/c/src/validators/datatype/YearMonthDatatypeValidator.cpp
Index: YearMonthDatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/YearMonthDatatypeValidator.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- YearMonthDatatypeValidator.cpp 2001/11/07 19:18:52 1.1
+++ YearMonthDatatypeValidator.cpp 2001/11/14 22:02:25 1.2
@@ -55,8 +55,11 @@
*/
/*
- * $Id: YearMonthDatatypeValidator.cpp,v 1.1 2001/11/07 19:18:52 peiyongz Exp $
+ * $Id: YearMonthDatatypeValidator.cpp,v 1.2 2001/11/14 22:02:25 peiyongz Exp $
* $Log: YearMonthDatatypeValidator.cpp,v $
+ * Revision 1.2 2001/11/14 22:02:25 peiyongz
+ * rethrow exception with original error message.
+ *
* Revision 1.1 2001/11/07 19:18:52 peiyongz
* DateTime Port
*
@@ -66,6 +69,7 @@
// Includes
// ---------------------------------------------------------------------------
#include <validators/datatype/YearMonthDatatypeValidator.hpp>
+#include <util/SchemaDateTimeException.hpp>
// ---------------------------------------------------------------------------
// Constructors and Destructor
@@ -105,6 +109,11 @@
try
{
pRetDate->parseYearMonth();
+ }
+ catch (const XMLException &e)
+ {
+ delete pRetDate;
+ ThrowXML1(SchemaDateTimeException, XMLExcepts::RethrowError, e.getMessage());
}
catch (...)
{
1.2 +11 -2 xml-xerces/c/src/validators/datatype/YearDatatypeValidator.cpp
Index: YearDatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/YearDatatypeValidator.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- YearDatatypeValidator.cpp 2001/11/07 19:18:52 1.1
+++ YearDatatypeValidator.cpp 2001/11/14 22:02:25 1.2
@@ -55,8 +55,11 @@
*/
/*
- * $Id: YearDatatypeValidator.cpp,v 1.1 2001/11/07 19:18:52 peiyongz Exp $
+ * $Id: YearDatatypeValidator.cpp,v 1.2 2001/11/14 22:02:25 peiyongz Exp $
* $Log: YearDatatypeValidator.cpp,v $
+ * Revision 1.2 2001/11/14 22:02:25 peiyongz
+ * rethrow exception with original error message.
+ *
* Revision 1.1 2001/11/07 19:18:52 peiyongz
* DateTime Port
*
@@ -66,6 +69,7 @@
// Includes
// ---------------------------------------------------------------------------
#include <validators/datatype/YearDatatypeValidator.hpp>
+#include <util/SchemaDateTimeException.hpp>
// ---------------------------------------------------------------------------
// Constructors and Destructor
@@ -105,6 +109,11 @@
try
{
pRetDate->parseYear();
+ }
+ catch (const XMLException &e)
+ {
+ delete pRetDate;
+ ThrowXML1(SchemaDateTimeException, XMLExcepts::RethrowError, e.getMessage());
}
catch (...)
{
1.2 +11 -2 xml-xerces/c/src/validators/datatype/TimeDatatypeValidator.cpp
Index: TimeDatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/TimeDatatypeValidator.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TimeDatatypeValidator.cpp 2001/11/07 19:18:52 1.1
+++ TimeDatatypeValidator.cpp 2001/11/14 22:02:25 1.2
@@ -55,8 +55,11 @@
*/
/*
- * $Id: TimeDatatypeValidator.cpp,v 1.1 2001/11/07 19:18:52 peiyongz Exp $
+ * $Id: TimeDatatypeValidator.cpp,v 1.2 2001/11/14 22:02:25 peiyongz Exp $
* $Log: TimeDatatypeValidator.cpp,v $
+ * Revision 1.2 2001/11/14 22:02:25 peiyongz
+ * rethrow exception with original error message.
+ *
* Revision 1.1 2001/11/07 19:18:52 peiyongz
* DateTime Port
*
@@ -66,6 +69,7 @@
// Includes
// ---------------------------------------------------------------------------
#include <validators/datatype/TimeDatatypeValidator.hpp>
+#include <util/SchemaDateTimeException.hpp>
// ---------------------------------------------------------------------------
// Constructors and Destructor
@@ -105,6 +109,11 @@
try
{
pRetDate->parseTime();
+ }
+ catch (const XMLException &e)
+ {
+ delete pRetDate;
+ ThrowXML1(SchemaDateTimeException, XMLExcepts::RethrowError, e.getMessage());
}
catch (...)
{
1.2 +11 -2 xml-xerces/c/src/validators/datatype/MonthDayDatatypeValidator.cpp
Index: MonthDayDatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/MonthDayDatatypeValidator.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MonthDayDatatypeValidator.cpp 2001/11/07 19:18:52 1.1
+++ MonthDayDatatypeValidator.cpp 2001/11/14 22:02:25 1.2
@@ -55,8 +55,11 @@
*/
/*
- * $Id: MonthDayDatatypeValidator.cpp,v 1.1 2001/11/07 19:18:52 peiyongz Exp $
+ * $Id: MonthDayDatatypeValidator.cpp,v 1.2 2001/11/14 22:02:25 peiyongz Exp $
* $Log: MonthDayDatatypeValidator.cpp,v $
+ * Revision 1.2 2001/11/14 22:02:25 peiyongz
+ * rethrow exception with original error message.
+ *
* Revision 1.1 2001/11/07 19:18:52 peiyongz
* DateTime Port
*
@@ -66,6 +69,7 @@
// Includes
// ---------------------------------------------------------------------------
#include <validators/datatype/MonthDayDatatypeValidator.hpp>
+#include <util/SchemaDateTimeException.hpp>
// ---------------------------------------------------------------------------
// Constructors and Destructor
@@ -105,6 +109,11 @@
try
{
pRetDate->parseMonthDay();
+ }
+ catch (const XMLException &e)
+ {
+ delete pRetDate;
+ ThrowXML1(SchemaDateTimeException, XMLExcepts::RethrowError, e.getMessage());
}
catch (...)
{
1.2 +11 -2 xml-xerces/c/src/validators/datatype/MonthDatatypeValidator.cpp
Index: MonthDatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/MonthDatatypeValidator.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MonthDatatypeValidator.cpp 2001/11/07 19:18:52 1.1
+++ MonthDatatypeValidator.cpp 2001/11/14 22:02:25 1.2
@@ -55,8 +55,11 @@
*/
/*
- * $Id: MonthDatatypeValidator.cpp,v 1.1 2001/11/07 19:18:52 peiyongz Exp $
+ * $Id: MonthDatatypeValidator.cpp,v 1.2 2001/11/14 22:02:25 peiyongz Exp $
* $Log: MonthDatatypeValidator.cpp,v $
+ * Revision 1.2 2001/11/14 22:02:25 peiyongz
+ * rethrow exception with original error message.
+ *
* Revision 1.1 2001/11/07 19:18:52 peiyongz
* DateTime Port
*
@@ -66,6 +69,7 @@
// Includes
// ---------------------------------------------------------------------------
#include <validators/datatype/MonthDatatypeValidator.hpp>
+#include <util/SchemaDateTimeException.hpp>
// ---------------------------------------------------------------------------
// Constructors and Destructor
@@ -105,6 +109,11 @@
try
{
pRetDate->parseMonth();
+ }
+ catch (const XMLException &e)
+ {
+ delete pRetDate;
+ ThrowXML1(SchemaDateTimeException, XMLExcepts::RethrowError, e.getMessage());
}
catch (...)
{
1.2 +11 -2 xml-xerces/c/src/validators/datatype/DurationDatatypeValidator.cpp
Index: DurationDatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/DurationDatatypeValidator.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DurationDatatypeValidator.cpp 2001/11/07 19:18:52 1.1
+++ DurationDatatypeValidator.cpp 2001/11/14 22:02:25 1.2
@@ -55,8 +55,11 @@
*/
/*
- * $Id: DurationDatatypeValidator.cpp,v 1.1 2001/11/07 19:18:52 peiyongz Exp $
+ * $Id: DurationDatatypeValidator.cpp,v 1.2 2001/11/14 22:02:25 peiyongz Exp $
* $Log: DurationDatatypeValidator.cpp,v $
+ * Revision 1.2 2001/11/14 22:02:25 peiyongz
+ * rethrow exception with original error message.
+ *
* Revision 1.1 2001/11/07 19:18:52 peiyongz
* DateTime Port
*
@@ -66,6 +69,7 @@
// Includes
// ---------------------------------------------------------------------------
#include <validators/datatype/DurationDatatypeValidator.hpp>
+#include <util/SchemaDateTimeException.hpp>
// ---------------------------------------------------------------------------
// Constructors and Destructor
@@ -105,6 +109,11 @@
try
{
pRetDate->parseDuration();
+ }
+ catch (const XMLException &e)
+ {
+ delete pRetDate;
+ ThrowXML1(SchemaDateTimeException, XMLExcepts::RethrowError, e.getMessage());
}
catch (...)
{
1.2 +11 -2 xml-xerces/c/src/validators/datatype/DayDatatypeValidator.cpp
Index: DayDatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/DayDatatypeValidator.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DayDatatypeValidator.cpp 2001/11/07 19:18:52 1.1
+++ DayDatatypeValidator.cpp 2001/11/14 22:02:25 1.2
@@ -55,8 +55,11 @@
*/
/*
- * $Id: DayDatatypeValidator.cpp,v 1.1 2001/11/07 19:18:52 peiyongz Exp $
+ * $Id: DayDatatypeValidator.cpp,v 1.2 2001/11/14 22:02:25 peiyongz Exp $
* $Log: DayDatatypeValidator.cpp,v $
+ * Revision 1.2 2001/11/14 22:02:25 peiyongz
+ * rethrow exception with original error message.
+ *
* Revision 1.1 2001/11/07 19:18:52 peiyongz
* DateTime Port
*
@@ -66,6 +69,7 @@
// Includes
// ---------------------------------------------------------------------------
#include <validators/datatype/DayDatatypeValidator.hpp>
+#include <util/SchemaDateTimeException.hpp>
// ---------------------------------------------------------------------------
// Constructors and Destructor
@@ -105,6 +109,11 @@
try
{
pRetDate->parseDay();
+ }
+ catch (const XMLException &e)
+ {
+ delete pRetDate;
+ ThrowXML1(SchemaDateTimeException, XMLExcepts::RethrowError, e.getMessage());
}
catch (...)
{
1.2 +11 -2 xml-xerces/c/src/validators/datatype/DateTimeDatatypeValidator.cpp
Index: DateTimeDatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/DateTimeDatatypeValidator.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DateTimeDatatypeValidator.cpp 2001/11/07 19:18:52 1.1
+++ DateTimeDatatypeValidator.cpp 2001/11/14 22:02:25 1.2
@@ -55,8 +55,11 @@
*/
/*
- * $Id: DateTimeDatatypeValidator.cpp,v 1.1 2001/11/07 19:18:52 peiyongz Exp $
+ * $Id: DateTimeDatatypeValidator.cpp,v 1.2 2001/11/14 22:02:25 peiyongz Exp $
* $Log: DateTimeDatatypeValidator.cpp,v $
+ * Revision 1.2 2001/11/14 22:02:25 peiyongz
+ * rethrow exception with original error message.
+ *
* Revision 1.1 2001/11/07 19:18:52 peiyongz
* DateTime Port
*
@@ -66,6 +69,7 @@
// Includes
// ---------------------------------------------------------------------------
#include <validators/datatype/DateTimeDatatypeValidator.hpp>
+#include <util/SchemaDateTimeException.hpp>
// ---------------------------------------------------------------------------
// Constructors and Destructor
@@ -105,6 +109,11 @@
try
{
pRetDate->parseDateTime();
+ }
+ catch (const XMLException &e)
+ {
+ delete pRetDate;
+ ThrowXML1(SchemaDateTimeException, XMLExcepts::RethrowError, e.getMessage());
}
catch (...)
{
1.2 +11 -2 xml-xerces/c/src/validators/datatype/DateDatatypeValidator.cpp
Index: DateDatatypeValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/datatype/DateDatatypeValidator.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DateDatatypeValidator.cpp 2001/11/07 19:18:52 1.1
+++ DateDatatypeValidator.cpp 2001/11/14 22:02:25 1.2
@@ -55,8 +55,11 @@
*/
/*
- * $Id: DateDatatypeValidator.cpp,v 1.1 2001/11/07 19:18:52 peiyongz Exp $
+ * $Id: DateDatatypeValidator.cpp,v 1.2 2001/11/14 22:02:25 peiyongz Exp $
* $Log: DateDatatypeValidator.cpp,v $
+ * Revision 1.2 2001/11/14 22:02:25 peiyongz
+ * rethrow exception with original error message.
+ *
* Revision 1.1 2001/11/07 19:18:52 peiyongz
* DateTime Port
*
@@ -66,6 +69,7 @@
// Includes
// ---------------------------------------------------------------------------
#include <validators/datatype/DateDatatypeValidator.hpp>
+#include <util/SchemaDateTimeException.hpp>
// ---------------------------------------------------------------------------
// Constructors and Destructor
@@ -105,6 +109,11 @@
try
{
pRetDate->parseDate();
+ }
+ catch (const XMLException &e)
+ {
+ delete pRetDate;
+ ThrowXML1(SchemaDateTimeException, XMLExcepts::RethrowError, e.getMessage());
}
catch (...)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org