exception 처리 수정
This commit is contained in:
@@ -54,11 +54,15 @@ public class RabbitMqService {
|
||||
}
|
||||
catch (InvalidProtocolBufferException e) {
|
||||
log.error("InvalidProtocolBufferException message: {}, destServer: {}, e.Message : {}", message.toString(), destServer, e.getMessage());
|
||||
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.EXCEPTION_INVALID_PROTOCOL_BUFFER_EXCEPTION_ERROR.getMessage());
|
||||
throw new RuntimeException("InvalidProtocolBufferException message: " + message, e);
|
||||
}
|
||||
catch (IOException e) {
|
||||
log.error("IOException message: {}, destServer: {}, e.Message : {}", message.toString(), destServer, e.getMessage());
|
||||
throw new RestApiException(CommonCode.ERROR.getHttpStatus(), ErrorCode.EXCEPTION_IO_EXCEPTION_ERROR.getMessage());
|
||||
throw new RuntimeException("IOException message: " + message, e);
|
||||
}
|
||||
catch (Exception e) {
|
||||
log.error("Exception message: {}, destServer: {}, e.Message : {}", message.toString(), destServer, e.getMessage());
|
||||
throw new RuntimeException("Exception message: " + message, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user