]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
5cb6ac7feda10fa35e06744a8b1b9127465f7cf7
[tmp/jakarta-migration.git] /
1 /**
2  *  This document is a part of the source code and related artifacts
3  *  for CollectionSpace, an open source collections management system
4  *  for museums and related institutions:
5
6  *  http://www.collectionspace.org
7  *  http://wiki.collectionspace.org
8
9  *  Copyright 2009 University of California at Berkeley
10
11  *  Licensed under the Educational Community License (ECL), Version 2.0.
12  *  You may not use this file except in compliance with this License.
13
14  *  You may obtain a copy of the ECL 2.0 License at
15
16  *  https://source.collectionspace.org/collection-space/LICENSE.txt
17  */
18
19 package org.collectionspace.services.common.repository;
20
21 /**
22  * DocumentNotFoundException
23  * 
24  */
25 public class DocumentNotFoundException extends DocumentException {
26
27     /**
28      * Creates a new instance of <code>DocumentNotFoundException</code> without detail message.
29      */
30     public DocumentNotFoundException() {
31     }
32
33
34     /**
35      * Constructs an instance of <code>DocumentNotFoundException</code> with the specified detail message.
36      * @param msg the detail message.
37      */
38     public DocumentNotFoundException(String msg) {
39         super(msg);
40     }
41
42
43     /**
44      * Constructs a new exception with the specified detail message and
45      * cause.  <p>Note that the detail message associated with
46      * <code>cause</code> is <i>not</i> automatically incorporated in
47      * this exception's detail message.
48      *
49      * @param  message the detail message (which is saved for later retrieval
50      *         by the {@link #getMessage()} method).
51      * @param  cause the cause (which is saved for later retrieval by the
52      *         {@link #getCause()} method).  (A <tt>null</tt> value is
53      *         permitted, and indicates that the cause is nonexistent or
54      *         unknown.)
55      * @since  1.4
56      */
57     public DocumentNotFoundException(String message, Throwable cause) {
58         super(message, cause);
59     }
60
61     /**
62      * Constructs a new exception with the specified cause and a detail
63      * message of <tt>(cause==null ? null : cause.toString())</tt> (which
64      * typically contains the class and detail message of <tt>cause</tt>).
65      * This constructor is useful for exceptions that are little more than
66      * wrappers for other throwables (for example, {@link
67      * java.security.PrivilegedActionException}).
68      *
69      * @param  cause the cause (which is saved for later retrieval by the
70      *         {@link #getCause()} method).  (A <tt>null</tt> value is
71      *         permitted, and indicates that the cause is nonexistent or
72      *         unknown.)
73      * @since  1.4
74      */
75     public DocumentNotFoundException(Throwable cause) {
76         super(cause);
77     }
78 }