1 17 package org.alfresco.service.cmr.lock; 18 19 import java.text.MessageFormat ; 20 21 import org.alfresco.i18n.I18NUtil; 22 import org.alfresco.service.cmr.repository.NodeRef; 23 24 29 public class UnableToReleaseLockException extends RuntimeException  30 { 31 34 private static final long serialVersionUID = 3257565088071432243L; 35 36 39 private static final String ERROR_MESSAGE = I18NUtil.getMessage("lock_service.insufficent_privileges"); 40 41 44 public UnableToReleaseLockException(NodeRef nodeRef) 45 { 46 super(MessageFormat.format(ERROR_MESSAGE, new Object []{nodeRef.getId()})); 47 } 48 } 49 | Popular Tags |