private void runEKBPreCommitHooks ( EKBCommit commit ) throws EKBException { for ( EKBPreCommitHook hook : preCommitHooks ) { try { hook . onPreCommit ( commit ) ; } catch ( EKBException e ) { throw new EKBException ( "EDBException is thrown in a pre commit hook." , e ) ; } catch ( Exception e ) { LOGGER . warn ( "An exception is thrown in a EKB pre commit hook." , e ) ; } } }
Runs all registered pre - commit hooks