Coverage Report - org.apache.tapestry.util.exception.ExceptionDescription
 
Classes in this File Line Coverage Branch Coverage Complexity
ExceptionDescription
0%
0/10
N/A
1
 
 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
 21  
  * an exception (in output or on a web page).
 22  
  * <p>
 23  
  * We capture all the information about an exception as Strings.
 24  
  * 
 25  
  * @author Howard Lewis Ship
 26  
  */
 27  
 
 28  
 public class ExceptionDescription implements Serializable
 29  
 {
 30  
 
 31  
     /**
 32  
      * @since 2.0.4
 33  
      */
 34  
 
 35  
     private static final long serialVersionUID = -4874930784340781514L;
 36  
 
 37  
     private String _exceptionClassName;
 38  
     private String _message;
 39  
     private ExceptionProperty[] _properties;
 40  
     private String[] _stackTrace;
 41  
 
 42  
     public ExceptionDescription(String exceptionClassName, String message,
 43  
             ExceptionProperty[] properties, String[] stackTrace)
 44  0
     {
 45  0
         this._exceptionClassName = exceptionClassName;
 46  0
         this._message = message;
 47  0
         this._properties = properties;
 48  0
         this._stackTrace = stackTrace;
 49  0
     }
 50  
 
 51  
     public String getExceptionClassName()
 52  
     {
 53  0
         return _exceptionClassName;
 54  
     }
 55  
 
 56  
     public String getMessage()
 57  
     {
 58  0
         return _message;
 59  
     }
 60  
 
 61  
     public ExceptionProperty[] getProperties()
 62  
     {
 63  0
         return _properties;
 64  
     }
 65  
 
 66  
     public String[] getStackTrace()
 67  
     {
 68  0
         return _stackTrace;
 69  
     }
 70  
 }