mirror of
https://github.com/corda/corda.git
synced 2024-12-24 23:26:48 +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) {
|
} catch (nse: NotSerializableException) {
|
||||||
throw nse
|
throw nse
|
||||||
} catch (t: Throwable) {
|
} 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 {
|
} finally {
|
||||||
objectHistory.clear()
|
objectHistory.clear()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user