public void delete(GlbRoleDao attrs) throws RemoteException { try { this.attrs = attrs; dao.remove(attrs); } catch (Exception ex) { ex.toString(); } }
public void delete(EnvAspOtherMatrixMethodDao attrs) throws ConstraintViolatedException, UserException { try { this.attrs = attrs; dao.remove(attrs); } catch (ConstraintViolatedException ex) { ctx.setRollbackOnly(); throw ex; } catch (NamingException ex) { ctx.setRollbackOnly(); throw new UserException("Erro no servidor de nomes.", ex); } catch (SQLException ex) { ctx.setRollbackOnly(); throw new UserException("Erro no SQL!", ex); } }