Clover coverage report - Code Coverage for tapestry release 4.0-alpha-3
Coverage timestamp: Mon May 16 2005 09:05:49 EDT
file stats: LOC: 75   Methods: 5
NCLOC: 36   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
ExceptionDescription.java - 100% 100% 100%
coverage
 1   
 // Copyright 2004, 2005 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.tapestry.util.exception;
 16   
 
 17   
 import java.io.Serializable;
 18   
 
 19   
 /**
 20   
  *  A description of an <code>Exception</code>.  This is useful when presenting an
 21   
  *  exception (in output or on a web page).
 22   
  *
 23   
  *  <p>We capture all the information about an exception as
 24   
  *  Strings.
 25   
  *
 26   
  *  @author Howard Lewis Ship
 27   
  * 
 28   
  **/
 29   
 
 30   
 public class ExceptionDescription implements Serializable
 31   
 {
 32   
     /**
 33   
      *  @since 2.0.4
 34   
      * 
 35   
      **/
 36   
 
 37   
     private static final long serialVersionUID = -4874930784340781514L;
 38   
 
 39   
     private String exceptionClassName;
 40   
     private String message;
 41   
     private ExceptionProperty[] properties;
 42   
     private String[] stackTrace;
 43   
 
 44  38
     public ExceptionDescription(
 45   
         String exceptionClassName,
 46   
         String message,
 47   
         ExceptionProperty[] properties,
 48   
         String[] stackTrace)
 49   
     {
 50  38
         this.exceptionClassName = exceptionClassName;
 51  38
         this.message = message;
 52  38
         this.properties = properties;
 53  38
         this.stackTrace = stackTrace;
 54   
     }
 55   
 
 56  38
     public String getExceptionClassName()
 57   
     {
 58  38
         return exceptionClassName;
 59   
     }
 60   
 
 61  41
     public String getMessage()
 62   
     {
 63  41
         return message;
 64   
     }
 65   
 
 66  38
     public ExceptionProperty[] getProperties()
 67   
     {
 68  38
         return properties;
 69   
     }
 70   
 
 71  25
     public String[] getStackTrace()
 72   
     {
 73  25
         return stackTrace;
 74   
     }
 75   
 }