Coverage Report - org.apache.commons.mapper.MapperException
 
Classes in this File Line Coverage Branch Coverage Complexity
MapperException
0%
0/12
N/A
1
 
 1  
 /*
 2  
  * Copyright 2003-2004 The Apache Software Foundation.
 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  
 
 17  
 package org.apache.commons.mapper;
 18  
 
 19  
 /**
 20  
  * MapperException encapsulates everything that could go wrong with mappers.
 21  
  * Often this will wrap another type of exception such as SQLException so that 
 22  
  * callers are insulated from implementation specific exceptions.  Callers can check 
 23  
  * the getCause() method for the wrapped exception.
 24  
  */
 25  
 public class MapperException extends Exception {
 26  
 
 27  0
     private Throwable cause = null;
 28  
 
 29  
     /**
 30  
      * Constructor for MapperException.
 31  
      */
 32  
     public MapperException() {
 33  0
         super();
 34  0
     }
 35  
 
 36  
     /**
 37  
      * Constructor for MapperException.
 38  
      * @param message
 39  
      */
 40  
     public MapperException(String message) {
 41  0
         super(message);
 42  0
     }
 43  
 
 44  
     /**
 45  
      * Constructor for MapperException.
 46  
      * @param message
 47  
      * @param cause
 48  
      */
 49  
     public MapperException(String message, Throwable cause) {
 50  0
         super(message);
 51  
 
 52  0
         this.cause = cause;
 53  0
     }
 54  
 
 55  
     /**
 56  
      * Constructor for MapperException.
 57  
      * @param cause
 58  
      */
 59  0
     public MapperException(Throwable cause) {
 60  0
         this.cause = cause;
 61  0
     }
 62  
 
 63  
     /**
 64  
      * Returns the cause.
 65  
      * @return Throwable
 66  
      */
 67  
     public Throwable getCause() {
 68  0
         return this.cause;
 69  
     }
 70  
 
 71  
 }