1 /*
2 * RDFpro - An extensible tool for building stream-oriented RDF processing libraries.
3 *
4 * Written in 2014 by Francesco Corcoglioniti with support by Marco Amadori, Michele Mostarda,
5 * Alessio Palmero Aprosio and Marco Rospocher. Contact info on http://rdfpro.fbk.eu/
6 *
7 * To the extent possible under law, the authors have dedicated all copyright and related and
8 * neighboring rights to this software to the public domain worldwide. This software is
9 * distributed without any warranty.
10 *
11 * You should have received a copy of the CC0 Public Domain Dedication along with this software.
12 * If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
13 */
14 package eu.fbk.rdfpro;
15
16 import javax.annotation.Nullable;
17
18 import org.openrdf.rio.RDFHandlerException;
19
20 /**
21 * Signals a failure in retrieving data from an {@code RDFSource}
22 * <p>
23 * This unchecked exception is used for differentiating errors in retrieving data from errors in
24 * consuming it, which are conveyed by {@link RDFHandlerException}.
25 * </p>
26 */
27 public class RDFSourceException extends RuntimeException {
28
29 private static final long serialVersionUID = 1L;
30
31 /**
32 * Creates a new instance with the message and cause specified.
33 *
34 * @param message
35 * the message, possibly null
36 * @param cause
37 * the cause, possibly null
38 */
39 public RDFSourceException(@Nullable final String message, @Nullable final Throwable cause) {
40 super(message, cause);
41 }
42
43 /**
44 * Creates a new instance with the message specified.
45 *
46 * @param message
47 * the message, possibly null
48 */
49 public RDFSourceException(@Nullable final String message) {
50 super(message);
51 }
52
53 /**
54 * Creates a new instance with the cause specified.
55 *
56 * @param cause
57 * the cause, possibly null
58 */
59 public RDFSourceException(@Nullable final Throwable cause) {
60 super(cause);
61 }
62
63 /**
64 * Creates a new instance.
65 */
66 public RDFSourceException() {
67 super();
68 }
69
70 }