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 27 public class UnableToAquireLockException extends RuntimeException  28 { 29 32 private static final long serialVersionUID = 3258689892710889781L; 33 34 37 private final static String ERROR_MESSAGE = I18NUtil.getMessage("lock_service.node_locked"); 38 39 42 public UnableToAquireLockException(NodeRef nodeRef) 43 { 44 super(MessageFormat.format(ERROR_MESSAGE, new Object []{nodeRef.getId()})); 45 } 46 } 47 | Popular Tags |