Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ContextAwarePropertyNotFoundException |
|
| 1.0;1 |
1 | /* | |
2 | * Licensed to the Apache Software Foundation (ASF) under one | |
3 | * or more contributor license agreements. See the NOTICE file | |
4 | * distributed with this work for additional information | |
5 | * regarding copyright ownership. The ASF licenses this file | |
6 | * to you under the Apache License, Version 2.0 (the | |
7 | * "License"); you may not use this file except in compliance | |
8 | * with the License. You may obtain a copy of the License at | |
9 | * | |
10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
11 | * | |
12 | * Unless required by applicable law or agreed to in writing, | |
13 | * software distributed under the License is distributed on an | |
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
15 | * KIND, either express or implied. See the License for the | |
16 | * specific language governing permissions and limitations | |
17 | * under the License. | |
18 | */ | |
19 | package org.apache.myfaces.view.facelets.el; | |
20 | ||
21 | import javax.faces.view.Location; | |
22 | ||
23 | /** | |
24 | * Implementation of types {@link javax.el.PropertyNotFoundException}, | |
25 | * {@link ContextAware} and {@link javax.faces.FacesWrapper} | |
26 | * | |
27 | * @author martinkoci | |
28 | * | |
29 | * @see ContextAware | |
30 | */ | |
31 | 0 | public class ContextAwarePropertyNotFoundException |
32 | extends javax.el.PropertyNotFoundException | |
33 | implements ContextAwareExceptionWrapper | |
34 | { | |
35 | ||
36 | /** | |
37 | * | |
38 | */ | |
39 | private static final long serialVersionUID = -4194177998555929451L; | |
40 | ||
41 | private ContextAwareExceptionWrapper _delegate; | |
42 | //private Throwable _wrappedException; | |
43 | //private String _localizedMessage; | |
44 | ||
45 | ||
46 | public ContextAwarePropertyNotFoundException(Location location, | |
47 | String expressionString, String qName, | |
48 | Throwable wrapped) | |
49 | { | |
50 | 0 | super(wrapped); |
51 | //super(wrapped.getMessage()); | |
52 | //_localizedMessage = wrapped.getLocalizedMessage(); | |
53 | //_wrappedException = wrapped; | |
54 | 0 | _delegate = new DefaultContextAwareELException(location, expressionString, qName, wrapped); |
55 | 0 | } |
56 | ||
57 | public Location getLocation() | |
58 | { | |
59 | 0 | return _delegate.getLocation(); |
60 | } | |
61 | ||
62 | public String getExpressionString() | |
63 | { | |
64 | 0 | return _delegate.getExpressionString(); |
65 | } | |
66 | ||
67 | public String getQName() | |
68 | { | |
69 | 0 | return _delegate.getQName(); |
70 | } | |
71 | ||
72 | public Throwable getWrapped() | |
73 | { | |
74 | 0 | return _delegate.getWrapped(); |
75 | } | |
76 | ||
77 | /* | |
78 | @Override | |
79 | public String getLocalizedMessage() | |
80 | { | |
81 | return _localizedMessage; | |
82 | } | |
83 | ||
84 | @Override | |
85 | public Throwable getCause() | |
86 | { | |
87 | return _wrappedException.getCause(); | |
88 | } | |
89 | ||
90 | @Override | |
91 | public synchronized Throwable initCause(Throwable cause) | |
92 | { | |
93 | return _wrappedException.initCause(cause); | |
94 | }*/ | |
95 | } |