Provide the exception class name and not just the message when there's an internal deserialisation fault.

This commit is contained in:
Mike Hearn 2018-08-21 23:41:34 +02:00
parent 409b4e2a42
commit fd8c2e4dab

View File

@ -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()
}