#340 Cause exception for TypeValueException

open
nobody
5
2011-11-04
2011-11-04
Ernst de Haan
No

It would be helpful if a TypeValueException would also have the appropriate cause exception, e.g. for a pattern type. Then this can be used to diagnose any relevant problems.

Discussion

  • Ernst de Haan
    Ernst de Haan
    2011-11-08

    This also applies to XML types.

    One possible implementation would be to add a protected checkValueImpl() method to the Type class and implement it in certain subclasses, such as the PatternType and the XmlType (it can have a SAXException as cause, or - in case XSD validation is supported - a schema validation exception).