@@ -10567,6 +10567,8 @@ sealed class DehydrationException(message: String): kotlin.Exception(message) {
1056710567
1056810568 class Pickle (message : String ) : DehydrationException(message)
1056910569
10570+ class LegacyPickle (message : String ) : DehydrationException(message)
10571+
1057010572 class MissingSigningKey (message : String ) : DehydrationException(message)
1057110573
1057210574 class Json (message : String ) : DehydrationException(message)
@@ -10588,11 +10590,12 @@ public object FfiConverterTypeDehydrationError : FfiConverterRustBuffer<Dehydrat
1058810590
1058910591 return when (buf.getInt()) {
1059010592 1 -> DehydrationException .Pickle (FfiConverterString .read(buf))
10591- 2 -> DehydrationException .MissingSigningKey (FfiConverterString .read(buf))
10592- 3 -> DehydrationException .Json (FfiConverterString .read(buf))
10593- 4 -> DehydrationException .Store (FfiConverterString .read(buf))
10594- 5 -> DehydrationException .PickleKeyLength (FfiConverterString .read(buf))
10595- 6 -> DehydrationException .Rand (FfiConverterString .read(buf))
10593+ 2 -> DehydrationException .LegacyPickle (FfiConverterString .read(buf))
10594+ 3 -> DehydrationException .MissingSigningKey (FfiConverterString .read(buf))
10595+ 4 -> DehydrationException .Json (FfiConverterString .read(buf))
10596+ 5 -> DehydrationException .Store (FfiConverterString .read(buf))
10597+ 6 -> DehydrationException .PickleKeyLength (FfiConverterString .read(buf))
10598+ 7 -> DehydrationException .Rand (FfiConverterString .read(buf))
1059610599 else -> throw RuntimeException (" invalid error enum value, something is very wrong!!" )
1059710600 }
1059810601
@@ -10608,26 +10611,30 @@ public object FfiConverterTypeDehydrationError : FfiConverterRustBuffer<Dehydrat
1060810611 buf.putInt(1 )
1060910612 Unit
1061010613 }
10611- is DehydrationException .MissingSigningKey -> {
10614+ is DehydrationException .LegacyPickle -> {
1061210615 buf.putInt(2 )
1061310616 Unit
1061410617 }
10615- is DehydrationException .Json -> {
10618+ is DehydrationException .MissingSigningKey -> {
1061610619 buf.putInt(3 )
1061710620 Unit
1061810621 }
10619- is DehydrationException .Store -> {
10622+ is DehydrationException .Json -> {
1062010623 buf.putInt(4 )
1062110624 Unit
1062210625 }
10623- is DehydrationException .PickleKeyLength -> {
10626+ is DehydrationException .Store -> {
1062410627 buf.putInt(5 )
1062510628 Unit
1062610629 }
10627- is DehydrationException .Rand -> {
10630+ is DehydrationException .PickleKeyLength -> {
1062810631 buf.putInt(6 )
1062910632 Unit
1063010633 }
10634+ is DehydrationException .Rand -> {
10635+ buf.putInt(7 )
10636+ Unit
10637+ }
1063110638 }.let { /* this makes the `when` an expression, which ensures it is exhaustive */ }
1063210639 }
1063310640
0 commit comments