mirror of
https://github.com/corda/corda.git
synced 2024-12-24 07:06:44 +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