Marc Knaup
06/09/2019, 12:46 PMlateinit
for required properties?
That will just throw an UninitializedPropertyAccessException
at runtime if the property is missing during deserialization instead of the expected SerializationException
.
Due to the examples I've assumed that such a case can never happen because the descriptor states that these properties are mandatory and it would be checked internally. Doesn't seem to be the case though 😞sandwwraith
06/10/2019, 10:00 AMMarc Knaup
06/10/2019, 10:01 AMsandwwraith
06/10/2019, 10:02 AMMissingFieldException
subclass which is thrown from generated code, so you can use it, too