mirror of
https://github.com/valitydev/wb-list-manager.git
synced 2024-11-06 01:35:17 +00:00
fix after review
This commit is contained in:
parent
4d50d7ccb1
commit
5a9e34883e
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user