XStream
  1. XStream
  2. XSTR-326

Add exception declarations to methods on Xstream class

    Details

    • Type: Task Task
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None

      Description

      com.thoughtworks.xstream.Xstream does not declare any exceptions on its method declarations, either as throws clauses or as javadoc, even for methods such as fromXML(Reader), which should have a very clearly defined exception behaviour. As it stands, we're reduced to try/catch RuntimeException, which isn't very precise.

      The javadoc should declare the various runtime exceptions that may be thrown.

        Issue Links

          People

          • Assignee:
            Unassigned
            Reporter:
            Kenny MacLeod
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: