mirror of
https://github.com/corda/corda.git
synced 2024-12-19 21:17:58 +00:00
Provide the exception class name and not just the message when there's an internal deserialisation fault.
This commit is contained in:
parent
409b4e2a42
commit
fd8c2e4dab
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user