-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deser: replace ParseError with LLDeserError
Previously, there was a cycle in error types. Precisely, the `value::BuiltinDeserializationErrorKind::GenericParseError` contained a `ParseError`. Meanwhile, ParseError contained a DeserializationError. This commit removes this cycle by removing the former dependency. The GenericParseError variant will be replaced by two new variants: - LowLevelDeserializationError (wrapping the corresponding error type) - CustomTypeNotSupported(String) The main issue was that `deser_cql_value` would return a ParseError. In this commit, we change it so it returns DeserializationError. Other functions from deserialization module are adjusted accordingly as well. We also changed the variant `TabletParsingError::Parse(ParseError)` to `TabletParsingError::DeserializationError(DeserializationError)`, because the tablets module makes use of `deser_cql_value`.
- Loading branch information
Showing
5 changed files
with
55 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters