Skip to content

Commit

Permalink
unwrap, exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjwalls committed Nov 21, 2024
1 parent 373478c commit 52890b4
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1485,10 +1485,13 @@ private <T> T unwrap(final MarshalledObject<?> mo,
} finally {
setCcl(old);
}
} catch (ClassNotFoundException ex) {
logger.warning("unwrap", "Failed to unmarshall object: " + ex);
logger.debug("unwrap", ex);
throw new UnmarshalException(ex.toString(), ex);
} catch (Exception e) {
if (e instanceof IOException) {
throw (IOException) e;
}
logger.warning("unwrap", "Failed to unmarshall object: " + e);
logger.debug("unwrap", e);
throw new UnmarshalException(e.toString(), e);
}
}

Expand Down

0 comments on commit 52890b4

Please sign in to comment.