1 /*****************************************************************************
5 * Creation date 25.12.2012
8 * @copyright OPEN CASCADE 2012-2015
9 *****************************************************************************/
11 package org.splat.exception;
13 import org.splat.common.properties.MessageKeyEnum;
16 * This exception is thrown when trying to delete a document used by other documents.
18 * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
20 public class DocumentIsUsedException extends BusinessException {
25 private static final long serialVersionUID = 8835396863040438781L;
30 private static final MessageKeyEnum MESSAGE_KEY = MessageKeyEnum.DCT_000002;
35 private transient final String _documentTitle;
37 * Constructor with document title as a parameter.
39 * @param documentTitle
42 public DocumentIsUsedException(final String documentTitle) {
43 super(MESSAGE_KEY.toString(), documentTitle);
44 _documentTitle = documentTitle;
47 * Get the document title.
48 * @return the document title
50 public String getDocumentTitle() {
51 return _documentTitle;