01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr;
05:
06: /**
07: * Exception thrown when an attempt is made to assign a
08: * value to a property that has an invalid format, given the type of the
09: * property. Also thrown if an attempt is made to read the value of
10: * a property using a type-specific read method of a type into which it is not
11: * convertable.
12: */
13: public class ValueFormatException extends RepositoryException {
14: /**
15: * Constructs a new instance of this class with <code>null</code> as its
16: * detail message.
17: */
18: public ValueFormatException() {
19: super ();
20: }
21:
22: /**
23: * Constructs a new instance of this class with the specified detail
24: * message.
25: *
26: * @param message the detail message. The detail message is saved for
27: * later retrieval by the {@link #getMessage()} method.
28: */
29: public ValueFormatException(String message) {
30: super (message);
31: }
32:
33: /**
34: * Constructs a new instance of this class with the specified detail
35: * message and root cause.
36: *
37: * @param message the detail message. The detail message is saved for
38: * later retrieval by the {@link #getMessage()} method.
39: * @param rootCause root failure cause
40: */
41: public ValueFormatException(String message, Throwable rootCause) {
42: super (message, rootCause);
43: }
44:
45: /**
46: * Constructs a new instance of this class with the specified root cause.
47: *
48: * @param rootCause root failure cause
49: */
50: public ValueFormatException(Throwable rootCause) {
51: super(rootCause);
52: }
53: }
|