KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > faces > convert > ConverterException


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package javax.faces.convert;
17
18 import javax.faces.FacesException;
19 import javax.faces.application.FacesMessage;
20
21 /**
22  * $Log: ConverterException.java,v $
23  * Revision 1.7 2004/07/01 22:00:51 mwessendorf
24  * ASF switch
25  *
26  * Revision 1.6 2004/03/26 12:08:41 manolito
27  * Exceptions in getAsString now catched and
28  * more relaxed Number casting in all number converters
29  *
30  * @author Thomas Spiegl (latest modification by $Author: mwessendorf $)
31  * @version $Revision: 1.7 $ $Date: 2004/07/01 22:00:51 $
32  */

33 public class ConverterException
34         extends FacesException
35 {
36     // FIELDS
37
private FacesMessage _facesMessage;
38
39     // CONSTRUCTORS
40
public ConverterException()
41     {
42         super();
43     }
44
45     public ConverterException(FacesMessage facesMessage)
46     {
47         super(facesMessage.getSummary());
48         _facesMessage = facesMessage;
49     }
50
51     public ConverterException(FacesMessage facesMessage, Throwable JavaDoc cause)
52     {
53         super(cause);
54         _facesMessage = facesMessage;
55     }
56
57     public ConverterException(String JavaDoc message)
58     {
59         super(message);
60     }
61
62     public ConverterException(String JavaDoc message, Throwable JavaDoc cause)
63     {
64         super(message, cause);
65     }
66
67     public ConverterException(Throwable JavaDoc cause)
68     {
69         super(cause);
70     }
71
72     // METHODS
73
public FacesMessage getFacesMessage()
74     {
75         return _facesMessage;
76     }
77
78 }
79
Popular Tags