@Override
    public void onError(final RaftException e) {
        LOG.error(
            "Encountered an error={} on StateMachine {}, it's highly recommended to implement this method as raft stops working since some error occurs, you should figure out the cause and repair or remove this node.",
            e.getStatus(), getClassName(), e);
    }
State machine adapter that implements all methods with default behavior
except {@link #onApply(com.alipay.sofa.jraft.Iterator)}.

@author boyan (boyan@alibaba-inc.com)

2018-Mar-30 10:32:27 AM
jraft-core/src/main/java/com/alipay/sofa/jraft/core/StateMachineAdapter.java