Coverage Report - de.smartics.properties.api.core.context.alias.UnknownAliasException
 
Classes in this File Line Coverage Branch Coverage Complexity
UnknownAliasException
0%
0/4
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2012-2013 smartics, Kronseder & Reiner GmbH
 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 de.smartics.properties.api.core.context.alias;
 17  
 
 18  
 /**
 19  
  * Signals that an alias is not registered with the system.
 20  
  */
 21  
 public final class UnknownAliasException extends AliasException
 22  
 {
 23  
   // ********************************* Fields *********************************
 24  
 
 25  
   // --- constants ------------------------------------------------------------
 26  
 
 27  
   /**
 28  
    * The class version identifier.
 29  
    * <p>
 30  
    * The value of this constant is {@value}.
 31  
    * </p>
 32  
    */
 33  
   private static final long serialVersionUID = 1L;
 34  
 
 35  
   // --- members --------------------------------------------------------------
 36  
 
 37  
   // ****************************** Initializer *******************************
 38  
 
 39  
   // ****************************** Constructors ******************************
 40  
 
 41  
   /**
 42  
    * Convenience constructor without a cause.
 43  
    *
 44  
    * @param alias the alias that signals a problem.
 45  
    */
 46  
   public UnknownAliasException(final String alias)
 47  
   {
 48  0
     this(null, alias);
 49  0
   }
 50  
 
 51  
   /**
 52  
    * Default constructor.
 53  
    *
 54  
    * @param cause the cause (which is saved for later retrieval by the
 55  
    *          {@link #getCause()} method). (A <tt>null</tt> value is permitted,
 56  
    *          and indicates that the cause is nonexistent or unknown.)
 57  
    * @param alias the alias that signals a problem.
 58  
    */
 59  
   public UnknownAliasException(final Throwable cause, final String alias)
 60  
   {
 61  0
     super("Unkown alias '" + alias + "'.", cause, alias);
 62  0
   }
 63  
 
 64  
   // ****************************** Inner Classes *****************************
 65  
 
 66  
   // ********************************* Methods ********************************
 67  
 
 68  
   // --- init -----------------------------------------------------------------
 69  
 
 70  
   // --- get&set --------------------------------------------------------------
 71  
 
 72  
   // --- business -------------------------------------------------------------
 73  
 
 74  
   // --- object basics --------------------------------------------------------
 75  
 
 76  
 }