Replace a few RuntimeExceptions with AlfrescoRuntimeExceptions.

This commit is contained in:
Tom Page
2018-01-12 14:52:37 +00:00
parent 965d86508e
commit bc07bbfb44
2 changed files with 15 additions and 13 deletions

View File

@@ -34,6 +34,8 @@ import java.io.IOException;
import java.io.OutputStream;
import java.util.Random;
import org.alfresco.error.AlfrescoRuntimeException;
/**
* Content cleanser base implementation.
*
@@ -74,7 +76,7 @@ public abstract class ContentCleanser
catch (IOException ioException)
{
// re-throw
throw new RuntimeException("Unable to overwrite file", ioException);
throw new AlfrescoRuntimeException("Unable to overwrite file", ioException);
}
}

View File

@@ -291,7 +291,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
}
catch (Exception ex)
{
throw new RuntimeException("Unexpected exception thrown. Please refer to the log files for details.", ex);
throw new AlfrescoRuntimeException("Unexpected exception thrown. Please refer to the log files for details.", ex);
}
finally
{
@@ -304,7 +304,7 @@ public class DataSetServiceImpl implements DataSetService, RecordsManagementMode
}
catch (IOException ex)
{
throw new RuntimeException("Failed to close the input stream!", ex);
throw new AlfrescoRuntimeException("Failed to close the input stream!", ex);
}
}
}