< prev index next >

## src/java.xml.crypto/share/classes/javax/xml/crypto/URIReferenceException.java

Print this page

      1 /*
      2  * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
      3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
      4  *
      5  * This code is free software; you can redistribute it and/or modify it
      6  * under the terms of the GNU General Public License version 2 only, as
      7  * published by the Free Software Foundation.  Oracle designates this
      8  * particular file as subject to the "Classpath" exception as provided
      9  * by Oracle in the LICENSE file that accompanied this code.
     10  *
     11  * This code is distributed in the hope that it will be useful, but WITHOUT
     12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
     14  * version 2 for more details (a copy is included in the LICENSE file that
     15  * accompanied this code).
     16  *
     17  * You should have received a copy of the GNU General Public License version
     18  * 2 along with this work; if not, write to the Free Software Foundation,
     19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
     20  *
     21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22  * or visit www.oracle.com if you need additional information or have any
     40  *
     41  * @author Sean Mullan
     42  * @author JSR 105 Expert Group
     43  * @since 1.6
     44  * @see URIDereferencer#dereference(URIReference, XMLCryptoContext)
     45  * @see RetrievalMethod#dereference(XMLCryptoContext)
     46  */
     47 public class URIReferenceException extends Exception {
     48
     49     private static final long serialVersionUID = 7173469703932561419L;
     50
     51     /**
     52      * The throwable that caused this exception to get thrown, or null if this
     53      * exception was not caused by another throwable or if the causative
     54      * throwable is unknown.
     55      *
     56      * @serial
     57      */
     58     private Throwable cause;
     59

     60     private URIReference uriReference;
     61
     62     /**
     63      * Constructs a new {@code URIReferenceException} with
     64      * {@code null} as its detail message.
     65      */
     66     public URIReferenceException() {
     67         super();
     68     }
     69
     70     /**
     71      * Constructs a new {@code URIReferenceException} with the specified
     72      * detail message.
     73      *
     74      * @param message the detail message
     75      */
     76     public URIReferenceException(String message) {
     77         super(message);
     78     }
     79
      1 /*
      2  * Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
      3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
      4  *
      5  * This code is free software; you can redistribute it and/or modify it
      6  * under the terms of the GNU General Public License version 2 only, as
      7  * published by the Free Software Foundation.  Oracle designates this
      8  * particular file as subject to the "Classpath" exception as provided
      9  * by Oracle in the LICENSE file that accompanied this code.
     10  *
     11  * This code is distributed in the hope that it will be useful, but WITHOUT
     12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
     14  * version 2 for more details (a copy is included in the LICENSE file that
     15  * accompanied this code).
     16  *
     17  * You should have received a copy of the GNU General Public License version
     18  * 2 along with this work; if not, write to the Free Software Foundation,
     19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
     20  *
     21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22  * or visit www.oracle.com if you need additional information or have any
     40  *
     41  * @author Sean Mullan
     42  * @author JSR 105 Expert Group
     43  * @since 1.6
     44  * @see URIDereferencer#dereference(URIReference, XMLCryptoContext)
     45  * @see RetrievalMethod#dereference(XMLCryptoContext)
     46  */
     47 public class URIReferenceException extends Exception {
     48
     49     private static final long serialVersionUID = 7173469703932561419L;
     50
     51     /**
     52      * The throwable that caused this exception to get thrown, or null if this
     53      * exception was not caused by another throwable or if the causative
     54      * throwable is unknown.
     55      *
     56      * @serial
     57      */
     58     private Throwable cause;
     59
     60     /**
     61      * The {@code URIReference} that was being dereferenced
     62      * when the exception was thrown, or {@code null} if not specified.
     63      */
     64     private URIReference uriReference;
     65
     66     /**
     67      * Constructs a new {@code URIReferenceException} with
     68      * {@code null} as its detail message.
     69      */
     70     public URIReferenceException() {
     71         super();
     72     }
     73
     74     /**
     75      * Constructs a new {@code URIReferenceException} with the specified
     76      * detail message.
     77      *
     78      * @param message the detail message
     79      */
     80     public URIReferenceException(String message) {
     81         super(message);
     82     }
     83

< prev index next >