Uploaded image for project: 'Metadata Aggregator'
  1. Metadata Aggregator
  2. MDA-166

Serializers should be able to throw IOException

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.1
    • Fix Version/s: 0.10.0
    • Component/s: DOM Metadata
    • Labels:
      None
    • Operating System:
      Multiple

      Description

      Probably for historical reasons, the ItemSerializer interface's signature for serialize doesn't allow the throwing of any exceptions. This begs the question of what should be done if an exception arises; at the moment the only implementation just swallows the exception and logs an error.

      It would make sense for this to be able to throw IOException, at least, and have the calling classes deal with that by swallowing the exception if that makes sense in context (although I suspect it seldom will).

      Same applies to ItemCollectionSerializer.

      Assigning to 0.10.0 as I don't want API changes on the 0.9.x maintenance branch.

        Attachments

          Activity

            People

            Assignee:
            ian@iay.org.uk Ian Young
            Reporter:
            ian@iay.org.uk Ian Young
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m