Closed LinZhihao-723 closed 1 week ago
The changes in this pull request focus on enhancing the error handling capabilities within the Deserializer
class, specifically in the deserialize_next_ir_unit
method. The return type has been modified to allow specific error codes from the deserialize_tag
function to propagate, rather than returning a fixed error code. This adjustment improves the granularity of error reporting during the deserialization process. Additionally, comments in the code have been updated to reflect these changes.
File Path | Change Summary |
---|---|
components/core/src/clp/ffi/ir_stream/Deserializer.hpp | Updated the return type of deserialize_next_ir_unit to forward error codes from deserialize_tag . Adjusted logic for error handling and updated comments accordingly. |
Deserializer
API to deserialize key-value pair IR streams one IR unit at a time, which directly relates to the modifications made in the main PR regarding the deserialize_next_ir_unit
method and its error handling improvements.deserialize_next_ir_unit
method in the main PR.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
In the PR description, I guess you mean:
However, this error should be equivalent to incomplete IR stream error, which should be the same with ~std::errc::no_message_available~std::errc::result_out_of_range.
In the PR description, I guess you mean:
However, this error should be equivalent to incomplete IR stream error, which should be the same with ~std::errc::no_message_available~std::errc::result_out_of_range.
Right... my bad
Description
Before this PR, when the deserializer fails to read the next IR unit's type tag, it returns
std::errc::no_message_available
. However, this error should be equivalent to incomplete IR stream error, which should be the same withstd::errc::result_out_of_range
. This PR fixes this issue. The PR also removed unused includes fromDeserializer
's header.Validation performed
Summary by CodeRabbit
New Features
Documentation