Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/maven/fixes/9.1' into maven/rele…
Browse files Browse the repository at this point in the history
…ase/9.1
  • Loading branch information
metaventis-build committed Jul 4, 2024
2 parents 7a65e08 + fba9d4b commit ce1b736
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.edu_sharing.restservices;

import co.elastic.clients.elasticsearch._types.ElasticsearchException;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.repo.domain.node.NodeExistsException;
import org.alfresco.repo.security.authentication.AuthenticationException;
Expand All @@ -10,9 +11,12 @@
import org.alfresco.service.cmr.repository.InvalidStoreRefException;
import org.alfresco.service.cmr.security.NoSuchPersonException;
import org.alfresco.service.cmr.usage.ContentQuotaException;
import org.apache.log4j.Logger;
import org.edu_sharing.alfresco.RestrictedAccessException;
import org.edu_sharing.alfresco.policy.NodeFileExtensionValidationException;
import org.edu_sharing.alfresco.policy.NodeFileSizeExceededException;
import org.edu_sharing.alfresco.policy.NodeMimetypeValidationException;
import org.edu_sharing.alfresco.service.toolpermission.ToolPermissionException;
import org.edu_sharing.service.InsufficientPermissionException;
import org.edu_sharing.service.NotAnAdminException;
import org.edu_sharing.service.collection.DuplicateNodeException;
Expand All @@ -23,6 +27,7 @@

import java.io.FileNotFoundException;
import java.io.Serializable;
import java.lang.reflect.UndeclaredThrowableException;
import java.security.InvalidKeyException;

import java.lang.reflect.UndeclaredThrowableException;
Expand Down Expand Up @@ -103,7 +108,9 @@ public static DAOException mapping(Throwable t,String nodeId) {
){
return DAODOIException.instance((DOIServiceException)t.getCause(),nodeId);
}

if(t instanceof ElasticsearchException) {
Logger.getLogger(DAOException.class).info("Elasticsearch error details: " + ((ElasticsearchException)t).response());
}
if (t instanceof NodeExistsException) {

return new DAOValidationException(t,nodeId);
Expand Down

0 comments on commit ce1b736

Please sign in to comment.