public TransitionErrorCode getErrorCode() {
    return error;
  }
An extension of {@link RuntimeException} used to record exceptions occurred during state transition.
ambry-api/src/main/java/com/github/ambry/clustermap/StateTransitionException.java