Coverage Report - org.apache.maven.shared.utils.reflection.ReflectorException
 
Classes in this File Line Coverage Branch Coverage Complexity
ReflectorException
50%
4/8
N/A
1
 
 1  
 package org.apache.maven.shared.utils.reflection;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *  http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 /**
 23  
  * Exception indicating that an error has occurred while instantiating a class
 24  
  * with the Reflector class. This exception is meant to put a more user-friendly
 25  
  * face on the myriad other exceptions throws during reflective object creation.
 26  
  *
 27  
  * @author John Casey
 28  
  */
 29  
 class ReflectorException
 30  
     extends Exception
 31  
 {
 32  
     /**
 33  
      * Create a new ReflectorException.
 34  
      */
 35  
     public ReflectorException()
 36  0
     {
 37  0
     }
 38  
 
 39  
     /**
 40  
      * Create a new ReflectorException with the specified message.
 41  
      *
 42  
      * @param msg The message.
 43  
      */
 44  
     public ReflectorException( String msg )
 45  
     {
 46  21
         super( msg );
 47  21
     }
 48  
 
 49  
     /**
 50  
      * Create a new ReflectorException with the specified root cause.
 51  
      *
 52  
      * @param root The root cause.
 53  
      */
 54  
     public ReflectorException( Throwable root )
 55  
     {
 56  15
         super( root );
 57  15
     }
 58  
 
 59  
     /**
 60  
      * Create a new ReflectorException with the specified message and root
 61  
      * cause.
 62  
      *
 63  
      * @param msg  The message.
 64  
      * @param root The root cause.
 65  
      */
 66  
     public ReflectorException( String msg, Throwable root )
 67  
     {
 68  0
         super( msg, root );
 69  0
     }
 70  
 }