01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr;
05:
06: /**
07: * Exception thrown by the deserialization methods of <code>Session</code>
08: * if the serialized data being input has an invalid format.
09: */
10: public class InvalidSerializedDataException extends RepositoryException {
11: /**
12: * Constructs a new instance of this class with <code>null</code> as its
13: * detail message.
14: */
15: public InvalidSerializedDataException() {
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 InvalidSerializedDataException(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 InvalidSerializedDataException(String message,
39: Throwable rootCause) {
40: super (message, rootCause);
41: }
42:
43: /**
44: * Constructs a new instance of this class with the specified root cause.
45: *
46: * @param rootCause root failure cause
47: */
48: public InvalidSerializedDataException(Throwable rootCause) {
49: super(rootCause);
50: }
51: }
|