Coverage Report - javax.faces.convert.ConverterException
 
Classes in this File Line Coverage Branch Coverage Complexity
ConverterException
100%
16/16
N/A
1
 
 1  
 /*
 2  
  * Copyright 2004-2011 the Seasar Foundation and the Others.
 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,
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and 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  
  * @author shot
 23  
  */
 24  
 public class ConverterException extends FacesException {
 25  
 
 26  
     private static final long serialVersionUID = 1L;
 27  
 
 28  46
     private FacesMessage facesMessage = null;
 29  
 
 30  
     public ConverterException() {
 31  1
         super();
 32  1
     }
 33  
 
 34  
     public ConverterException(String message) {
 35  1
         super(message);
 36  1
     }
 37  
 
 38  
     public ConverterException(Throwable cause) {
 39  1
         super(cause);
 40  1
     }
 41  
 
 42  
     public ConverterException(String message, Throwable cause) {
 43  1
         super(message, cause);
 44  1
     }
 45  
 
 46  
     public ConverterException(FacesMessage facesMessage) {
 47  3
         super(facesMessage.getDetail());
 48  3
         this.facesMessage = facesMessage;
 49  3
     }
 50  
 
 51  
     public ConverterException(FacesMessage facesMessage, Throwable cause) {
 52  39
         super(facesMessage.getDetail(), cause);
 53  39
         this.facesMessage = facesMessage;
 54  39
     }
 55  
 
 56  
     public FacesMessage getFacesMessage() {
 57  22
         return facesMessage;
 58  
     }
 59  
 
 60  
 }