gleimar 2015-05-04 15:26:00 +00:00
parent 1e647e9a6c
commit 66a6c31672
1 changed files with 7 additions and 1 deletions

View File

@ -37,6 +37,7 @@ import com.rjconsultores.ventaboletos.service.InstiFinanceiraService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
import com.rjconsultores.ws.utileria.Atributos;
@Controller("importarPlanilhaController")
@Scope("prototype")
@ -79,7 +80,12 @@ public class ImportarPlanilhaController extends MyGenericForwardComposer {
try {
atualizarEntidade(pv);
} catch (IntegracionException e) {
log.error("erro integra pv: "+pv.getPuntoventaId(),e);
if (e.getLocalizedMessage() != null && (e.getLocalizedMessage().startsWith(Atributos.MSG_ERRO_GENERICA))){
log.error("erro integra pv: "+pv.getPuntoventaId(),e);
}else{
log.error("erro integra pv: "+pv.getPuntoventaId()+ " " + e.getLocalizedMessage());
}
} catch (ValidacionCampoException e) {
log.error("erro valida pv: "+pv.getPuntoventaId(),e);
}