public static StoreErrorCodes resolveErrorCode(Throwable t) {
    return Objects.equals(t.getMessage(), StoreException.IO_ERROR_STR) || Objects.equals(t.getMessage(),
        StoreException.INTERNAL_ERROR_STR) ? StoreErrorCodes.IOError : StoreErrorCodes.UnknownError;
  }
Resolve the error code from {@link Throwable}. This is to determine if exception is related to real disk I/O issue.
@param t the {@link Throwable} to check
@return the {@link StoreErrorCodes} based on the error message in exception/error.
ambry-api/src/main/java/com/github/ambry/store/StoreException.java