Skip to content
Permalink
Browse files
remove unnessary exception catch (#3169)
### Motivation
When read Lac from ledger, we won't throw NoEntryException, remove this exception catch.


### Changes
Remove the NoEntryException catch in ReadLac operation.
  • Loading branch information
hangc0276 committed Apr 13, 2022
1 parent b989fbc commit 78c0ca5672e6226ca1eff12bd9112d0ed366828e
Showing 1 changed file with 0 additions and 3 deletions.
@@ -94,9 +94,6 @@ private ReadLacResponse getReadLacResponse() {
} catch (Bookie.NoLedgerException e) {
status = StatusCode.ENOLEDGER;
logger.debug("No ledger found while trying to read last entry: {}", ledgerId, e);
} catch (Bookie.NoEntryException e) {
status = StatusCode.ENOENTRY;
logger.warn("No Entry found while trying to read last entry: {}", ledgerId, e);
} catch (BookieException.DataUnknownException e) {
status = StatusCode.EUNKNOWNLEDGERSTATE;
logger.error("Ledger in an unknown state while trying to read last entry: {}", ledgerId, e);

0 comments on commit 78c0ca5

Please sign in to comment.