01: /*
02: * Copyright 2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: * see Javadoc of <a href="http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/index.html">JSF Specification</a>
23: *
24: * @author Thomas Spiegl (latest modification by $Author: mbr $)
25: * @version $Revision: 512227 $ $Date: 2007-02-27 13:25:16 +0100 (Di, 27 Feb 2007) $
26: */
27: public class ConverterException extends FacesException {
28: private static final long serialVersionUID = 8668056061177480197L;
29: // FIELDS
30: private FacesMessage _facesMessage;
31:
32: // CONSTRUCTORS
33: public ConverterException() {
34: super ();
35: }
36:
37: public ConverterException(FacesMessage facesMessage) {
38: super (facesMessage.getSummary());
39: _facesMessage = facesMessage;
40: }
41:
42: public ConverterException(FacesMessage facesMessage, Throwable cause) {
43: super (cause);
44: _facesMessage = facesMessage;
45: }
46:
47: public ConverterException(String message) {
48: super (message);
49: }
50:
51: public ConverterException(String message, Throwable cause) {
52: super (message, cause);
53: }
54:
55: public ConverterException(Throwable cause) {
56: super (cause);
57: }
58:
59: // METHODS
60: public FacesMessage getFacesMessage() {
61: return _facesMessage;
62: }
63:
64: }
|