blob: e097996517854614656d2472ac785bbb50db084c [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/*
2 * reserved comment block
3 * DO NOT REMOVE OR ALTER!
4 */
5
6/*
7 * Copyright 1999-2004 The Apache Software Foundation.
8 *
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 *
21 */
22package com.sun.org.apache.xml.internal.security.utils.resolver;
23
24
25
26import com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException;
27import org.w3c.dom.Attr;
28
29
30/**
31 * This Exception is thrown if something related to the
32 * {@link com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolver} goes wrong.
33 *
34 * @author $Author: raul $
35 */
36public class ResourceResolverException extends XMLSecurityException {
37
38 /**
39 *
40 */
41 private static final long serialVersionUID = 1L;
42 /**
43 * Constructor ResourceResolverException
44 *
45 * @param _msgID
46 * @param uri
47 * @param BaseURI
48 */
49 public ResourceResolverException(String _msgID, Attr uri, String BaseURI) {
50
51 super(_msgID);
52
53 this._uri = uri;
54 this._BaseURI = BaseURI;
55 }
56
57 /**
58 * Constructor ResourceResolverException
59 *
60 * @param _msgID
61 * @param exArgs
62 * @param uri
63 * @param BaseURI
64 */
65 public ResourceResolverException(String _msgID, Object exArgs[], Attr uri,
66 String BaseURI) {
67
68 super(_msgID, exArgs);
69
70 this._uri = uri;
71 this._BaseURI = BaseURI;
72 }
73
74 /**
75 * Constructor ResourceResolverException
76 *
77 * @param _msgID
78 * @param _originalException
79 * @param uri
80 * @param BaseURI
81 */
82 public ResourceResolverException(String _msgID, Exception _originalException,
83 Attr uri, String BaseURI) {
84
85 super(_msgID, _originalException);
86
87 this._uri = uri;
88 this._BaseURI = BaseURI;
89 }
90
91 /**
92 * Constructor ResourceResolverException
93 *
94 * @param _msgID
95 * @param exArgs
96 * @param _originalException
97 * @param uri
98 * @param BaseURI
99 */
100 public ResourceResolverException(String _msgID, Object exArgs[],
101 Exception _originalException, Attr uri,
102 String BaseURI) {
103
104 super(_msgID, exArgs, _originalException);
105
106 this._uri = uri;
107 this._BaseURI = BaseURI;
108 }
109
110 //J-
111 Attr _uri = null;
112 /**
113 *
114 * @param uri
115 */
116 public void setURI(Attr uri) {
117 this._uri = uri;
118 }
119
120 /**
121 *
122 * @return the uri
123 */
124 public Attr getURI() {
125 return this._uri;
126 }
127
128 String _BaseURI;
129
130 /**
131 *
132 * @param BaseURI
133 */
134 public void setBaseURI(String BaseURI) {
135 this._BaseURI = BaseURI;
136 }
137
138 /**
139 *
140 * @return the basUri
141 */
142 public String getBaseURI() {
143 return this._BaseURI;
144 }
145 //J+
146}