Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ExceptionProperty |
|
| 1.0;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 | * Captures a name/value property pair from an exception. Part of an | |
21 | * {@link ExceptionDescription}. | |
22 | * | |
23 | * @author Howard Lewis Ship | |
24 | */ | |
25 | ||
26 | public class ExceptionProperty implements Serializable | |
27 | { | |
28 | ||
29 | private static final long serialVersionUID = 5260773289683550374L; | |
30 | ||
31 | /** | |
32 | * @since 2.0.4 | |
33 | */ | |
34 | ||
35 | private String _name; | |
36 | ||
37 | private Object _value; | |
38 | ||
39 | public ExceptionProperty(String name, Object value) | |
40 | 0 | { |
41 | 0 | this._name = name; |
42 | 0 | this._value = value; |
43 | 0 | } |
44 | ||
45 | public String getName() | |
46 | { | |
47 | 0 | return _name; |
48 | } | |
49 | ||
50 | public Object getValue() | |
51 | { | |
52 | 0 | return _value; |
53 | } | |
54 | } |