Skip to content

Commit

Permalink
Provide the exception class name and not just the message when there'…
Browse files Browse the repository at this point in the history
…s an internal deserialisation fault.
  • Loading branch information
Mike Hearn committed Aug 23, 2018
1 parent 409b4e2 commit fd8c2e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class DeserializationInput constructor(
} catch (nse: NotSerializableException) {
throw nse
} catch (t: Throwable) {
throw NotSerializableException("Unexpected throwable: ${t.message}").apply { initCause(t) }
throw NotSerializableException("Internal deserialization failure: ${t.javaClass.name}: ${t.message}").apply { initCause(t) }
} finally {
objectHistory.clear()
}
Expand Down

0 comments on commit fd8c2e4

Please sign in to comment.