mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Replace a few RuntimeExceptions with AlfrescoRuntimeExceptions.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user