diff --git a/modules/dcache-nfs/src/main/java/org/dcache/chimera/nfsv41/door/ExceptionUtils.java b/modules/dcache-nfs/src/main/java/org/dcache/chimera/nfsv41/door/ExceptionUtils.java index 794e64e5b10..d5c8268e1d4 100644 --- a/modules/dcache-nfs/src/main/java/org/dcache/chimera/nfsv41/door/ExceptionUtils.java +++ b/modules/dcache-nfs/src/main/java/org/dcache/chimera/nfsv41/door/ExceptionUtils.java @@ -19,12 +19,12 @@ import org.dcache.chimera.ChimeraFsException; import org.dcache.chimera.FileNotFoundChimeraFsException; import org.dcache.nfs.ChimeraNFSException; +import org.dcache.nfs.status.AccessException; import org.dcache.nfs.status.DelayException; import org.dcache.nfs.status.LayoutTryLaterException; import org.dcache.nfs.status.NfsIoException; import org.dcache.nfs.status.NoEntException; import org.dcache.nfs.status.NoSpcException; -import org.dcache.nfs.status.PermException; import org.dcache.nfs.status.ServerFaultException; /** @@ -80,7 +80,7 @@ public static ChimeraNFSException asNfsException(CacheException e, case NO_POOL_ONLINE: return new LayoutTryLaterException(e.getMessage(), e); case PERMISSION_DENIED: - return new PermException(e.getMessage(), e); + return new AccessException(e.getMessage(), e); case NO_POOL_CONFIGURED: case RESOURCE: return new NoSpcException(e.getMessage(), e);