@Override
public UnifiedRepositoryException convertException( final Exception exception, final String activityMessage,
final String refNum ) {
RepositoryFileDaoReferentialIntegrityException re = (RepositoryFileDaoReferentialIntegrityException) exception;
return new UnifiedRepositoryReferentialIntegrityException(
Messages
.getInstance()
.getString(
"ExceptionLoggingDecorator.referentialIntegrityException", activityMessage, re.getTarget().getPath(), getReferrerPaths( re.getReferrers() ), refNum ) ); //$NON-NLS-1$
}