XStream
  1. XStream
  2. XSTR-229

Make com.thoughtworks.xstream.alias.CannotResolveClassException a subclass of com.thoughtworks.xstream.core.BaseException

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      All

      Description

      Having a base Exception class for all XStream exception will make easier to manipulate exceptions.
      I'm migrating a proprietary XML code to use Xstream, but in order to keep backwards XML compatibility I'll need to keep the old version of the XML utility classes.
      My idea is to use something like:

      ObjectX x = null;
      try {
      x = (ObjectX) XMLStream.fromXML(xmlString);
      } catch (BaseException) { //conversion of XML failed. Try with the old XML tool
      x - (ObjectX) OldXmlTool.fromXML(xmlString);
      }
      return x;

        People

        • Assignee:
          Unassigned
          Reporter:
          Handerson Gomes
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: