protected void processErrorStatus(Status status,Map<String,Object> keyMap){
  List<Problem> problems=status.getProblem();
  if (null != problems && !problems.isEmpty()) {
    Problem problem=problems.get(0);
    String desc=problem.getDescription();
    String message=problem.getMessage();
    String diags=problem.getDiagnostics();
    keyMap.put(VNXFileConstants.CMD_RESULT,VNXFileConstants.CMD_FAILURE);
    if (null != desc) {
      keyMap.put(VNXFileConstants.FAULT_DESC,desc);
    }
    if (null != diags) {
      keyMap.put(VNXFileConstants.FAULT_DIAG,diags);
    }
    if (null != message) {
      keyMap.put(VNXFileConstants.FAULT_MSG,message);
    }
    if ((desc != null) && (!desc.isEmpty())) {
      _logger.error("Fault response received due to {} possible cause {}",desc,diags);
    }
 else {
      _logger.error("Fault response received due to {} possible cause {}",message,diags);
    }
  }
}

protected void processErrorStatus ( Status status , Map < String , Object > keyMap ) { List < Problem > problems = status . getProblem ( ) ; if ( null != problems && ! problems . isEmpty ( ) ) { Problem problem = problems . get ( 0 ) ; String desc = problem . getDescription ( ) ; String message = problem . getMessage ( ) ; String diags = problem . getDiagnostics ( ) ; keyMap . put ( VNXFileConstants . CMD_RESULT , VNXFileConstants . CMD_FAILURE ) ; if ( null != desc ) { keyMap . put ( VNXFileConstants . FAULT_DESC , desc ) ; } if ( null != diags ) { keyMap . put ( VNXFileConstants . FAULT_DIAG , diags ) ; } if ( null != message ) { keyMap . put ( VNXFileConstants . FAULT_MSG , message ) ; } if ( ( desc != null ) && ( ! desc . isEmpty ( ) ) ) { _logger . error ( "Fault response received due to {} possible cause {}" , desc , diags ) ; } else { _logger . error ( "Fault response received due to {} possible cause {}" , message , diags ) ; } } }
retrieve the description and diagnostics information from the error status .
