CORDA-2633 Restructure evolution serialization errors to print reason first (#4978)

This commit is contained in:
JamesHR3 2019-04-08 17:04:02 +01:00 committed by Rick Parker
parent 923d593caf
commit 9963a6609f

View File

@ -22,9 +22,10 @@ interface EvolutionSerializerFactory {
class EvolutionSerializationException(remoteTypeInformation: RemoteTypeInformation, reason: String)
: NotSerializableException(
"""
Cannot construct evolution serializer for remote type ${remoteTypeInformation.prettyPrint(false)}
Cannot construct evolution serializer for remote type ${remoteTypeInformation.typeIdentifier.name}: $reason
$reason
Full type information:
${remoteTypeInformation.prettyPrint(false)}
""".trimIndent()
)