Coverage Report - org.codehaus.plexus.context.ContextException
 
Classes in this File Line Coverage Branch Coverage Complexity
ContextException
100 %
4/4
N/A
1
 
 1  
 package org.codehaus.plexus.context;
 2  
 
 3  
 
 4  
 /*
 5  
  * Copyright 2001-2006 Codehaus Foundation.
 6  
  *
 7  
  * Licensed under the Apache License, Version 2.0 (the "License");
 8  
  * you may not use this file except in compliance with the License.
 9  
  * You may obtain a copy of the License at
 10  
  *
 11  
  *      http://www.apache.org/licenses/LICENSE-2.0
 12  
  *
 13  
  * Unless required by applicable law or agreed to in writing, software
 14  
  * distributed under the License is distributed on an "AS IS" BASIS,
 15  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 16  
  * See the License for the specific language governing permissions and
 17  
  * limitations under the License.
 18  
  */
 19  
 
 20  
 /**
 21  
  * Exception signalling a badly formed Context.
 22  
  *
 23  
  * This can be thrown by Context object when a entry is not
 24  
  * found. It can also be thrown manually in contextualize()
 25  
  * when Component detects a malformed containerContext value.
 26  
  *
 27  
  * @author <a href="mailto:dev@avalon.apache.org">Avalon Development Team</a>
 28  
  * @version CVS $Revision$ $Date$
 29  
  */
 30  
 public class ContextException
 31  
     extends Exception
 32  
 {
 33  
     private static final long serialVersionUID = 2030206863811644180L;
 34  
 
 35  
     /**
 36  
      * Construct a new <code>ContextException</code> instance.
 37  
      *
 38  
      * @param message The detail message for this exception.
 39  
      */
 40  
     public ContextException( final String message )
 41  
     {
 42  4
         this( message, null );
 43  4
     }
 44  
 
 45  
     /**
 46  
      * Construct a new <code>ContextException</code> instance.
 47  
      *
 48  
      * @param message The detail message for this exception.
 49  
      * @param throwable the root cause of the exception
 50  
      */
 51  
     public ContextException( final String message, final Throwable throwable )
 52  
     {
 53  4
         super( message, throwable );
 54  4
     }
 55  
 }