Coverage Report - org.apache.tiles.TilesException
 
Classes in this File Line Coverage Branch Coverage Complexity
TilesException
100%
8/8
N/A
1
 
 1  
 /*
 2  
  * $Id: TilesException.java 832867 2009-11-04 20:16:23Z apetrelli $
 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  
 package org.apache.tiles;
 22  
 
 23  
 
 24  
 /**
 25  
  * Root class for all Tiles-exceptions.
 26  
  *
 27  
  * @version $Rev: 832867 $ $Date: 2009-11-05 07:16:23 +1100 (Thu, 05 Nov 2009) $
 28  
  */
 29  
 public class TilesException extends RuntimeException {
 30  
 
 31  
     /**
 32  
      * Constructor.
 33  
      */
 34  3
     public TilesException() {
 35  3
     }
 36  
 
 37  
     /**
 38  
      * Constructor.
 39  
      *
 40  
      * @param message The error or warning message.
 41  
      */
 42  
     public TilesException(String message) {
 43  4
         super(message);
 44  4
     }
 45  
 
 46  
 
 47  
     /**
 48  
      * Create a new <code>TilesException</code> wrapping an existing exception.
 49  
      * <p/>
 50  
      * <p>The existing exception will be embedded in the new
 51  
      * one, and its message will become the default message for
 52  
      * the TilesException.</p>
 53  
      *
 54  
      * @param e The cause to be wrapped.
 55  
      */
 56  
     public TilesException(Throwable e) {
 57  3
         super(e);
 58  3
     }
 59  
 
 60  
 
 61  
     /**
 62  
      * Create a new <code>TilesException</code> from an existing exception.
 63  
      * <p/>
 64  
      * <p>The existing exception will be embedded in the new
 65  
      * one, but the new exception will have its own message.</p>
 66  
      *
 67  
      * @param message The detail message.
 68  
      * @param e       The cause to be wrapped.
 69  
      */
 70  
     public TilesException(String message, Throwable e) {
 71  3
         super(message, e);
 72  3
     }
 73  
 }