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