Coverage Report - org.apache.onami.test.reflection.HandleException
 
Classes in this File Line Coverage Branch Coverage Complexity
HandleException
0%
0/6
N/A
1
 
 1  
 package org.apache.onami.test.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  
 import static java.lang.String.format;
 23  
 
 24  
 /**
 25  
  * Exception thrown by a {@link ClassVisitor} when a error occurs.
 26  
  */
 27  
 public final class HandleException
 28  
     extends Exception
 29  
 {
 30  
 
 31  
     private static final long serialVersionUID = 1L;
 32  
 
 33  
     /**
 34  
      * Constructs a new HandleException with the specified detail message and cause.
 35  
      *
 36  
      * @param message  detail message
 37  
      * @param cause the cause
 38  
      */
 39  
     public HandleException( String message, Throwable cause )
 40  
     {
 41  0
         super( message, cause );
 42  0
     }
 43  
 
 44  
     /**
 45  
      * Constructs a new HandleException with the specified detail message.
 46  
      *
 47  
      * @param message a format string
 48  
      * @param args arguments referenced by the format specifiers in the format string
 49  
      * @see String#format(String, Object...)
 50  
      */
 51  
     public HandleException( String message, Object...args )
 52  
     {
 53  0
         super( format( message, args ) );
 54  0
     }
 55  
 
 56  
     /**
 57  
      * Constructs a new HandleException with the specified cause.
 58  
      *
 59  
      * @param cause the cause
 60  
      */
 61  
     public HandleException( Throwable cause )
 62  
     {
 63  0
         super( cause );
 64  0
     }
 65  
 
 66  
 }