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:
6 * http://www.collectionspace.org
7 * http://wiki.collectionspace.org
9 * Copyright 2009 University of California at Berkeley
11 * Licensed under the Educational Community License (ECL), Version 2.0.
12 * You may not use this file except in compliance with this License.
14 * You may obtain a copy of the ECL 2.0 License at
16 * https://source.collectionspace.org/collection-space/LICENSE.txt
19 package org.collectionspace.services.common.repository;
22 * DocumentNotFoundException
25 public class DocumentNotFoundException extends DocumentException {
28 * Creates a new instance of <code>DocumentNotFoundException</code> without detail message.
30 public DocumentNotFoundException() {
35 * Constructs an instance of <code>DocumentNotFoundException</code> with the specified detail message.
36 * @param msg the detail message.
38 public DocumentNotFoundException(String msg) {
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.
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
57 public DocumentNotFoundException(String message, Throwable cause) {
58 super(message, cause);
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}).
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
75 public DocumentNotFoundException(Throwable cause) {