Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Protobuffer exception handling #25

Merged

Conversation

ManfredKarrer
Copy link
Member

  • Use ProtobufferException for
    CoreNetworkProtoResolver.fromProto(PB.NetworkEnvelope proto)
  • Add raw PB data in case if an exception
  • log error if the encrypted data contains unknown PB data

Note: We should refactor the resolvers with checked exceptions instead
of the ProtobufferRuntimeException, but for the moment we leave that to
not add too much complexity/risk for that release.

- We will add in the next commit a checked ProtobufferException so we
want to distinguish from the runtime exception
- Use ProtobufferException for
CoreNetworkProtoResolver.fromProto(PB.NetworkEnvelope proto)
- Add raw PB data in case if an exception
- log error if the encrypted data contains unknown PB data

Note: We should refactor the resolvers with checked exceptions instead
of the ProtobufferRuntimeException, but for the moment we leave that to
not add too much complexity/risk for that release.
Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@ManfredKarrer ManfredKarrer merged commit 296c241 into bisq-network:master Jun 22, 2018
@ManfredKarrer ManfredKarrer deleted the protobuffer-exception-handling branch June 26, 2018 08:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants