|
|||||||||||||||||||
30 day Evaluation License registered to hlship@comcast.net Your 30 day evaluation period has expired. Please visit http://www.cenqua.com to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
ExceptionDescription.java | - | 100% | 100% | 100% |
|
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 | 37 | public ExceptionDescription( |
45 | String exceptionClassName, | |
46 | String message, | |
47 | ExceptionProperty[] properties, | |
48 | String[] stackTrace) | |
49 | { | |
50 | 37 | this.exceptionClassName = exceptionClassName; |
51 | 37 | this.message = message; |
52 | 37 | this.properties = properties; |
53 | 37 | this.stackTrace = stackTrace; |
54 | } | |
55 | ||
56 | 37 | public String getExceptionClassName() |
57 | { | |
58 | 37 | return exceptionClassName; |
59 | } | |
60 | ||
61 | 40 | public String getMessage() |
62 | { | |
63 | 40 | return message; |
64 | } | |
65 | ||
66 | 37 | public ExceptionProperty[] getProperties() |
67 | { | |
68 | 37 | return properties; |
69 | } | |
70 | ||
71 | 24 | public String[] getStackTrace() |
72 | { | |
73 | 24 | return stackTrace; |
74 | } | |
75 | } |
|