peiyongz 2002/11/27 13:26:55 Modified: c/src/xercesc/validators/datatype DateTimeValidator.cpp Log: Schema Errat E2-24 Duration 'T': allow SchemaDateTimeException be propogated to client. Revision Changes Path 1.3 +6 -10 xml-xerces/c/src/xercesc/validators/datatype/DateTimeValidator.cpp Index: DateTimeValidator.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/datatype/DateTimeValidator.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- DateTimeValidator.cpp 4 Nov 2002 14:53:28 -0000 1.2 +++ DateTimeValidator.cpp 27 Nov 2002 21:26:55 -0000 1.3 @@ -57,6 +57,10 @@ /* * $Id$ * $Log$ + * Revision 1.3 2002/11/27 21:26:55 peiyongz + * Schema Errat E2-24 Duration 'T': allow SchemaDateTimeException be + * propogated to client. + * * Revision 1.2 2002/11/04 14:53:28 tng * C++ Namespace Support. * @@ -194,14 +198,13 @@ if (asBase) return; - try + { // the derived classes' parse() method constructs an // XMLDateTime object anc invokes appropriate XMLDateTime's // parser to parse the content. XMLDateTime *theDate = parse(content); Janitor<XMLDateTime> jname(theDate); - int result; // must be < MaxExclusive @@ -266,14 +269,8 @@ if (i == enumLength) ThrowXML1(InvalidDatatypeValueException, XMLExcepts::VALUE_NotIn_Enumeration, content); } - } - catch (...) - { - ThrowXML1(InvalidDatatypeValueException, XMLExcepts::VALUE_NotIn_Enumeration, content); - // new error message needed here - //("Value '"+content+ "' is not legal value for current datatype. " +e.getMessage() ); - } + } } //
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]