Coverage Report - com.damnhandy.uri.template.VariableExpansionException
 
Classes in this File Line Coverage Branch Coverage Complexity
VariableExpansionException
33%
2/6
N/A
1
 
 1  
 /*
 2  
  * Copyright 2012, Ryan J. McDonough
 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 com.damnhandy.uri.template;
 17  
 
 18  
 
 19  
 /**
 20  
  * <p>
 21  
  * Raised when the the template processor
 22  
  * encounters an issue expanding the value into the variable at expansion time.
 23  
  * Typical scenarios are:
 24  
  * </p>
 25  
  * <ul>
 26  
  *  <li>The variable specification declares a prefix but the value is an array</li>
 27  
  *  <li>A value is a {@link java.util.List} of {@link java.util.List} or an array of array</li>
 28  
  * </ul>
 29  
  * @author <a href="ryan@damnhandy.com">Ryan J. McDonough</a>
 30  
  * @version $Revision: 1.1 $
 31  
  * @since 1.0
 32  
  */
 33  
 public class VariableExpansionException extends RuntimeException
 34  
 {
 35  
 
 36  
    /** The serialVersionUID */
 37  
    private static final long serialVersionUID = -1927979719672747848L;
 38  
 
 39  
 
 40  
    /**
 41  
     * Create a new VariableExpansionException.
 42  
     *
 43  
     * @param message
 44  
     */
 45  
    public VariableExpansionException(final String message)
 46  
    {
 47  10
       super(message);
 48  10
    }
 49  
 
 50  
    /**
 51  
     * Create a new VariableExpansionException.
 52  
     *
 53  
     * @param cause
 54  
     */
 55  
    public VariableExpansionException(final Throwable cause)
 56  
    {
 57  0
       super(cause);
 58  0
    }
 59  
 
 60  
    /**
 61  
     * Create a new VariableExpansionException.
 62  
     *
 63  
     * @param message
 64  
     * @param cause
 65  
     */
 66  
    public VariableExpansionException(String message, Throwable cause)
 67  
    {
 68  0
       super(message, cause);
 69  0
    }
 70  
 
 71  
 }