Revert "Use AlfrescoRuntimeException."

This reverts commit 59232c44f8.
This commit is contained in:
Tom Page
2019-08-01 13:33:26 +01:00
parent 59232c44f8
commit cca83d07b9
3 changed files with 3 additions and 6 deletions

View File

@@ -48,7 +48,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.rest.core.RMRestWrapper;
import org.alfresco.rest.rm.community.model.record.Record;
import org.alfresco.rest.rm.community.model.recordfolder.RecordFolder;
@@ -254,7 +253,7 @@ public class RecordFolderAPI extends RMModelRequest
}
catch (IOException e)
{
throw new AlfrescoRuntimeException("Failed to convert model to JSON.", e);
throw new RuntimeException("Failed to convert model to JSON.", e);
}
// add request fields
Iterator<String> fieldNames = root.fieldNames();

View File

@@ -47,7 +47,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.rest.core.RMRestWrapper;
import org.alfresco.rest.rm.community.model.unfiledcontainer.UnfiledContainer;
import org.alfresco.rest.rm.community.model.unfiledcontainer.UnfiledContainerChild;
@@ -217,7 +216,7 @@ public class UnfiledContainerAPI extends RMModelRequest
}
catch (IOException e)
{
throw new AlfrescoRuntimeException("Failed to convert model to JSON.", e);
throw new RuntimeException("Failed to convert model to JSON.", e);
}
// add request fields
Iterator<String> fieldNames = root.fieldNames();

View File

@@ -48,7 +48,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.rest.core.RMRestWrapper;
import org.alfresco.rest.rm.community.model.unfiledcontainer.UnfiledContainerChild;
import org.alfresco.rest.rm.community.model.unfiledcontainer.UnfiledContainerChildCollection;
@@ -217,7 +216,7 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
}
catch (IOException e)
{
throw new AlfrescoRuntimeException("Failed to convert model to JSON.", e);
throw new RuntimeException("Failed to convert model to JSON.", e);
}
// add request fields
Iterator<String> fieldNames = root.fieldNames();