[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
[x] I added new tests to check the change I am making.
[x] All existing and new tests are passing.
[x] Any breaking changes are documented below.
Changes:
This PR introduces the DeserializationTypeNotFoundException exception. When deserializing an object, we iterate through all ServerPod protocol dependencies to find a matching class type. If no match is found within a protocol, a DeserializationTypeNotFoundException is thrown. In these cases, we should silently continue to check other protocols. However, this behavior should only apply when this specific exception is thrown, not when a match is found but the data is invalid.
Closes: #2133
Pre-launch Checklist
///
), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.Changes:
This PR introduces the
DeserializationTypeNotFoundException
exception. When deserializing an object, we iterate through all ServerPod protocol dependencies to find a matching class type. If no match is found within a protocol, aDeserializationTypeNotFoundException
is thrown. In these cases, we should silently continue to check other protocols. However, this behavior should only apply when this specific exception is thrown, not when a match is found but the data is invalid.