fix after review

This commit is contained in:
ggmaleva 2021-10-07 15:40:27 +03:00
parent 4d50d7ccb1
commit 5a9e34883e
No known key found for this signature in database
GPG Key ID: 0E412B78565B108F
2 changed files with 1 additions and 28 deletions

View File

@ -1,26 +0,0 @@
package com.rbkmoney.wb.list.manager.exception;
public class UnknownRowTypeException extends RuntimeException { // TODO нужно ли оно?
public UnknownRowTypeException() {
}
public UnknownRowTypeException(String message) {
super(message);
}
public UnknownRowTypeException(String message, Throwable cause) {
super(message, cause);
}
public UnknownRowTypeException(Throwable cause) {
super(cause);
}
public UnknownRowTypeException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}

View File

@ -4,7 +4,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.rbkmoney.damsel.wb_list.*;
import com.rbkmoney.wb.list.manager.constant.RowType;
import com.rbkmoney.wb.list.manager.exception.RiakExecutionException;
import com.rbkmoney.wb.list.manager.exception.UnknownRowTypeException;
import com.rbkmoney.wb.list.manager.model.CountInfoModel;
import com.rbkmoney.wb.list.manager.repository.ListRepository;
import com.rbkmoney.wb.list.manager.utils.KeyGenerator;
@ -27,7 +26,7 @@ public class WbListServiceHandler implements WbListServiceSrv.Iface {
public boolean isExist(Row row) throws TException {
try {
return getCascadeRow(row).isPresent();
} catch (RiakExecutionException | UnknownRowTypeException e) {
} catch (RiakExecutionException e) {
log.error("WbListServiceHandler error when isExist row: {} e: ", row, e);
throw new TException(e);
}