[bisq-network/bisq-common] Protobuffer exception handling (#25)

Manfred Karrer notifications at github.com
Fri Jun 22 09:27:27 UTC 2018


- 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.
You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq-common/pull/25

-- Commit Summary --

  * Rename ProtobufferException to ProtobufferRuntimeException
  * Handle unknown PB data from encrypted messages

-- File Changes --

    M src/main/java/bisq/common/proto/ProtobufferException.java (4)
    A src/main/java/bisq/common/proto/ProtobufferRuntimeException.java (28)
    M src/main/java/bisq/common/proto/network/NetworkProtoResolver.java (3)

-- Patch Links --

https://github.com/bisq-network/bisq-common/pull/25.patch
https://github.com/bisq-network/bisq-common/pull/25.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq-common/pull/25
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20180622/8b0fa077/attachment-0001.html>


More information about the bisq-github mailing list