public void validateNodeRecord( NodeRecord record ) throws TransactionFailureException { if ( !record.inUse() && record.getNextRel() != Record.NO_NEXT_RELATIONSHIP.intValue() ) { throw new ConstraintViolationTransactionFailureException( "Cannot delete node<" + record.getId() + ">, because it still has relationships. " + "To delete this node, you must first delete its relationships." ); } }
throw new ConstraintViolationException( e.getMessage(), e );
throw new ConstraintViolationException( e.getMessage(), e );
throw new ConstraintViolationTransactionFailureException( e.getUserMessage( new SilentTokenNameLookup( tokenRead() ) ), e );
public void validateNodeRecord( NodeRecord record ) throws TransactionFailureException { if ( !record.inUse() && record.getNextRel() != Record.NO_NEXT_RELATIONSHIP.intValue() ) { throw new ConstraintViolationTransactionFailureException( "Cannot delete node<" + record.getId() + ">, because it still has relationships. " + "To delete this node, you must first delete its relationships." ); } }
throw new ConstraintViolationTransactionFailureException( e.getUserMessage( new SilentTokenNameLookup( tokenRead() ) ), e );