View Javadoc

1   /**
2    * 2008, Digitalis Informatica. All rights reserved. Distribuicao e Gestao de Informatica, Lda. Estrada de Paco de Arcos
3    * num.9 - Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 4408999 http://www.digitalis.pt
4    */
5   
6   package pt.digitalis.dif.utils.extensions.cms.exception;
7   
8   /**
9    * This exception occurs when there is a search of a ContentItem in the repository and the ContentItem is not found
10   * 
11   * @author Nuno Bravo
12   * @created Out 20, 2010
13   */
14  public class ContentItemNotFoundException extends ContentManagerException {
15  
16      /**  */
17      private static final long serialVersionUID = 1L;
18  
19      /**
20       */
21      public ContentItemNotFoundException()
22      {
23          super("Content item not found");
24      }
25  
26      /**
27       * @param exception
28       */
29      public ContentItemNotFoundException(Exception exception)
30      {
31          super(exception);
32      }
33  
34      /**
35       * @param contentId
36       */
37      public ContentItemNotFoundException(byte[] contentId)
38      {
39          super("Content not found with id: " + contentId);
40      }
41  
42      /**
43       * @param reason
44       */
45      public ContentItemNotFoundException(String reason)
46      {
47          super(reason);
48      }
49  }