Skip to content

Commit

Permalink
add ratis exception catch
Browse files Browse the repository at this point in the history
  • Loading branch information
HxpSerein committed Aug 12, 2024
1 parent a3fce58 commit 0c937e5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ public DataSet read(ConsensusGroupId groupId, IConsensusRequest request)
} else {
throw new RatisRequestFailedException(e);
}
} catch (GroupMismatchException e) {
throw new ConsensusGroupNotExistException(groupId);
} catch (Exception e) {
throw new RatisRequestFailedException(e);
}
Expand Down

0 comments on commit 0c937e5

Please sign in to comment.