Coverage Report - org.simpleframework.xml.core.UnionException
 
Classes in this File Line Coverage Branch Coverage Complexity
UnionException
100%
2/2
N/A
1
 
 1  
 /*
 2  
  * UnionException.java July 2006
 3  
  *
 4  
  * Copyright (C) 2006, Niall Gallagher <niallg@users.sf.net>
 5  
  *
 6  
  * Licensed under the Apache License, Version 2.0 (the "License");
 7  
  * you may not use this file except in compliance with the License.
 8  
  * You may obtain a copy of the License at
 9  
  *
 10  
  *     http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing, software
 13  
  * distributed under the License is distributed on an "AS IS" BASIS,
 14  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
 15  
  * implied. See the License for the specific language governing 
 16  
  * permissions and limitations under the License.
 17  
  */
 18  
 
 19  
 package org.simpleframework.xml.core;
 20  
 
 21  
 /**
 22  
  * The <code>UnionException</code> is thrown when there is an error
 23  
  * associated with unions. This exception this will be thrown if
 24  
  * there is an invalid union declaration on a field or method.
 25  
  * 
 26  
  * @author Niall Gallagher
 27  
  */
 28  
 public class UnionException extends PersistenceException {
 29  
 
 30  
    /**
 31  
     * Constructor for the <code>UnionException</code> object. 
 32  
     * This constructor takes a format string an a variable number of 
 33  
     * object arguments, which can be inserted into the format string. 
 34  
     * 
 35  
     * @param text a format string used to present the error message
 36  
     * @param list a list of arguments to insert into the string
 37  
     */
 38  
    public UnionException(String text, Object... list) {
 39  6
       super(String.format(text, list));               
 40  6
    }        
 41  
 }