protected void execute()

in src/main/java/com/epam/digital/data/platform/storage/form/repository/BaseCephRepository.java [43:53]


    protected void execute(Runnable runnable) {
        try {
            runnable.run();
        } catch (CephCommunicationException ex) {
            log.warn("Couldn't get form data from ceph", ex);
            throw new FormDataRepositoryCommunicationException(ex.getMessage(), ex);
        } catch (MisconfigurationException ex) {
            log.warn("Ceph configuration error", ex);
            throw new FormDataRepositoryMisconfigurationException(ex.getMessage(), ex);
        }
    }