01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr;
05:
06: /**
07: * An exception thrown when an attempt is made to place an item in a position
08: * where another item already exists.
09: */
10: public class ItemExistsException extends RepositoryException {
11: /**
12: * Constructs a new instance of this class with <code>null</code> as its
13: * detail message.
14: */
15: public ItemExistsException() {
16: super ();
17: }
18:
19: /**
20: * Constructs a new instance of this class with the specified detail
21: * message.
22: *
23: * @param message the detail message. The detail message is saved for
24: * later retrieval by the {@link #getMessage()} method.
25: */
26: public ItemExistsException(String message) {
27: super (message);
28: }
29:
30: /**
31: * Constructs a new instance of this class with the specified detail
32: * message and root cause.
33: *
34: * @param message the detail message. The detail message is saved for
35: * later retrieval by the {@link #getMessage()} method.
36: * @param rootCause root failure cause
37: */
38: public ItemExistsException(String message, Throwable rootCause) {
39: super (message, rootCause);
40: }
41:
42: /**
43: * Constructs a new instance of this class with the specified root cause.
44: *
45: * @param rootCause root failure cause
46: */
47: public ItemExistsException(Throwable rootCause) {
48: super(rootCause);
49: }
50: }
|