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

(cherry picked from commit 9963a6609ffc8b72b2e9323ab918aa0158b0f8cc)
This commit is contained in:
JamesHR3 2019-04-15 10:27:39 +01:00 committed by Katelyn Baker
parent 21adcffd31
commit 4afbf78c79

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