Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3066

deserializing a SerializedObject should pass on deserialization errors

    XMLWordPrintable

    Details

      Description

      In HibernateSerializedObjectDAO.convertSerializedObject there's a "catch (Exception e)" that consumes the exception, instead throwing a generic "Unable to deserialize" exception that doesn't let you see what happened.

      We should make sure that the DAOException we throw wraps the actual underlying exception.

      As a particular special-case, I think that if the underlying exception is an APIAuthenticationException, we should throw that one directly, rather than wrapping it.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              darius Darius Jazayeri
              Reporter:
              darius Darius Jazayeri
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: