Class DataSetUtils


  • public final class DataSetUtils
    extends Object
    Utility Class for Dataset related static helper methods.
    Version:
    1.0
    Author:
    Nikunj Goyal
    • Method Detail

      • checkHttpErrors

        public static void checkHttpErrors​(String errMsg,
                                           List<String> dsNames,
                                           OperationType type)
                                    throws Exception
        Formulate and return a more redefined error exception message based on a CRUD operation.
        Parameters:
        errMsg - error message
        dsNames - dataset representations
        type - crud type value of operation taken place
        Throws:
        Exception - with a possible customized error msg
      • parseJsonDSResponse

        public static Dataset parseJsonDSResponse​(org.json.simple.JSONObject jsonObject)
        Transform JSON into Dataset object
        Parameters:
        jsonObject - JSON object
        Returns:
        Dataset object