KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > jcr > ValueFormatException


1 /*
2  * $Id: ValueFormatException.java,v 1.2 2004/07/24 00:16:21 benjmestrallet Exp $
3  *
4  * Copyright 2002-2004 Day Management AG, Switzerland.
5  *
6  * Licensed under the Day RI License, Version 2.0 (the "License"),
7  * as a reference implementation of the following specification:
8  *
9  * Content Repository API for Java Technology, revision 0.12
10  * <http://www.jcp.org/en/jsr/detail?id=170>
11  *
12  * You may not use this file except in compliance with the License.
13  * You may obtain a copy of the License files at
14  *
15  * http://www.day.com/content/en/licenses/day-ri-license-2.0
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  */

24 package javax.jcr;
25
26 /**
27  * Exception thrown when an attempt is made to assign a
28  * value to a property that has an invalid format, given the type of the
29  * property. Also thrown if an attempt is made to read the value of
30  * a property using a type-specific read method of a type into which it is not
31  * convertable.
32  *
33  * @author Peeter Piegaze
34  * @author Stefan Guggisberg
35  */

36 public class ValueFormatException extends RepositoryException {
37
38   /**
39    * Constructs a new instance of this class.
40    */

41   public ValueFormatException() {
42     super();
43   }
44
45   /**
46    * Constructs a new instance of this class given a message describing the
47    * failure cause.
48    *
49    * @param s description
50    */

51   public ValueFormatException(String JavaDoc s) {
52     super(s);
53   }
54
55   /**
56    * Constructs a new instance of this class given a message describing the
57    * failure and a root exception.
58    *
59    * @param s description
60    * @param e root failure cause
61    */

62   public ValueFormatException(String JavaDoc s, Exception JavaDoc e) {
63     super(s, e);
64   }
65 }
66
Popular Tags