Skip to content

Instantly share code, notes, and snippets.

@ninrod
Created February 4, 2016 18:41
Show Gist options
  • Save ninrod/e571dc7e9858747584b2 to your computer and use it in GitHub Desktop.
Save ninrod/e571dc7e9858747584b2 to your computer and use it in GitHub Desktop.
Operador oper = new Operador();
Transacao utx2 = null;
utx2 = GerenciadorTransacoes.getInstancia().getTransacao();
utx2.begin();
try {
oper = FachadaPessoal.getInstancia().buscarOperador(operadorNome);
utx2.rollback();
} catch (BCRepositorioException re) {
throw new BCObjetoInvalidoException(FachadaProcorf.RESOURCE_BUNDLE,
"exception.erro_0107_Auxiliar_00000");
} catch (BCException ex) {
throw new BCObjetoInvalidoException(FachadaProcorf.RESOURCE_BUNDLE,
"exception.erro_0107_Auxiliar_00000");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment